@@ -83,17 +83,14 @@ jobs:
83
83
- name : Install dependencies
84
84
run : |
85
85
dnf install -y $SWIG_VERSION
86
- python_bin="/opt/python/${{ matrix.cpython_version }}/bin/python"
87
- ${python_bin} -m pip install --upgrade conan wheel auditwheel
88
- pip_installation_folder=$(${python_bin} -m pip show --files conan | grep 'Location:' | sed 's/Location: //')
89
- conan_installation_folder_relative_path=$(${python_bin} -m pip show --files conan | grep '/bin/' | sed 's#\s\+\(.*\)/conan#\1#')
90
- conan_installation_folder="${pip_installation_folder}/${conan_installation_folder_relative_path}"
91
- echo "Conan installation folder: ${conan_installation_folder}"
92
- echo "${conan_installation_folder}" >> $GITHUB_PATH
86
+ export PATH="/opt/python/${{ matrix.cpython_version }}/bin:$PATH"
87
+ python -m pip install --upgrade conan wheel auditwheel
93
88
- name : Build wheel
94
89
run : |
95
- /opt/python/${{ matrix.cpython_version }}/bin/python setup.py bdist_wheel
96
- /opt/python/${{ matrix.cpython_version }}/bin/python -m auditwheel repair pybuild/dist/*.whl
90
+ export PATH="/opt/python/${{ matrix.cpython_version }}/bin:$PATH"
91
+ conan remove -c "*/*"
92
+ python setup.py bdist_wheel
93
+ python -m auditwheel repair pybuild/dist/*.whl
97
94
- name : Wheel path
98
95
id : wheel
99
96
working-directory : wheelhouse
@@ -149,18 +146,14 @@ jobs:
149
146
- name : Install dependencies
150
147
run : |
151
148
dnf install -y $BISON_VERSION $FLEX_VERSION $JAVA_VERSION $SWIG_VERSION
152
- python_bin="/opt/python/${{ matrix.cpython_version }}/bin/python"
153
- ${python_bin} -m pip install --upgrade pip conan wheel auditwheel
154
- pip_installation_folder=$(${python_bin} -m pip show --files conan | grep 'Location:' | sed 's/Location: //')
155
- conan_installation_folder_relative_path=$(${python_bin} -m pip show --files conan | grep '/bin/' | sed 's#\s\+\(.*\)/conan#\1#')
156
- conan_installation_folder="${pip_installation_folder}/${conan_installation_folder_relative_path}"
157
- echo "Conan installation folder: ${conan_installation_folder}"
158
- echo "${conan_installation_folder}" >> $GITHUB_PATH
149
+ export PATH="/opt/python/${{ matrix.cpython_version }}/bin:$PATH"
150
+ python -m pip install --upgrade pip conan wheel auditwheel
159
151
- name : Build wheel
160
152
run : |
161
- conan remove -c "libqasm/*"
162
- /opt/python/${{ matrix.cpython_version }}/bin/python setup.py bdist_wheel
163
- /opt/python/${{ matrix.cpython_version }}/bin/python -m auditwheel repair pybuild/dist/*.whl
153
+ export PATH="/opt/python/${{ matrix.cpython_version }}/bin:$PATH"
154
+ conan remove -c "*/*"
155
+ python setup.py bdist_wheel
156
+ python -m auditwheel repair pybuild/dist/*.whl
164
157
- name : Wheel path
165
158
id : wheel
166
159
working-directory : wheelhouse
0 commit comments