Skip to content

Commit 26cfde4

Browse files
committed
Further resolving the linux wheel building
1 parent efb9458 commit 26cfde4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,17 @@ jobs:
7171
run: |
7272
pip install auditwheel
7373
python -m build --wheel
74-
# Remove original linux_x86_64 wheels and keep only repaired manylinux wheels
75-
rm dist/*linux_x86_64.whl
76-
auditwheel repair dist/*.whl
74+
# List what's in dist/ for debugging
75+
ls -la dist/
76+
# Find and repair any .whl files
77+
find dist/ -name "*.whl" -exec auditwheel repair {} \;
7778
# Move repaired wheels to dist/ and remove wheelhouse/
78-
mv wheelhouse/*.whl dist/
79-
rm -rf wheelhouse
79+
if [ -d wheelhouse ]; then
80+
mv wheelhouse/*.whl dist/
81+
rm -rf wheelhouse
82+
fi
83+
# Remove original linux_x86_64 wheels
84+
rm -f dist/*linux_x86_64.whl
8085
twine check dist/*
8186
8287
- name: Build wheels (macOS/Windows)

0 commit comments

Comments
 (0)