Skip to content

Commit f1d43ed

Browse files
authored
Merge pull request #190 from Tieqiong/fixwheels
add: fixwheel with manual ldpath
2 parents 809242d + 656276e commit f1d43ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/_build-non-pure-package.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,16 @@ jobs:
8484
conda install --file requirements/conda.txt
8585
conda install --file requirements/pip.txt
8686
pip install --upgrade build
87+
88+
89+
- name: Build and repair wheels
90+
run: |
8791
python -m pip wheel --no-deps --wheel-dir ./dist .
92+
if [[ "${{ matrix.buildplat }}" == "ubuntu-latest" ]]; then
93+
conda install auditwheel patchelf
94+
LD_LIBRARY_PATH=$CONDA_PREFIX/lib auditwheel repair dist/*.whl -w dist/
95+
rm dist/*-linux_*.whl
96+
fi
8897
8998
- name: Upload wheels to GitHub
9099
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)