Skip to content

Commit 00f0d6b

Browse files
committed
Update build_wheels.yml
1 parent 5aaefa8 commit 00f0d6b

1 file changed

Lines changed: 67 additions & 59 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 67 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -146,65 +146,73 @@ jobs:
146146
run: |
147147
python -m cibuildwheel --output-dir wheelhouse
148148
149-
# Add this new step immediately after the Build wheels step
150-
- name: Repair Linux wheels
151-
if: runner.os == 'Linux'
152-
run: |
153-
echo "Repairing Linux wheels with auditwheel..."
154-
pip install auditwheel
155-
mkdir -p repaired_wheels
156-
for whl in wheelhouse/sparse_numba-*-linux_x86_64.whl; do
157-
if [ -f "$whl" ]; then
158-
echo "Repairing wheel: $whl"
159-
auditwheel repair "$whl" -w repaired_wheels/
160-
else
161-
echo "No Linux wheels found to repair"
162-
fi
163-
done
164-
165-
# List repaired wheels
166-
echo "Repaired wheels:"
167-
ls -la repaired_wheels/
168-
169-
# Replace original wheels with repaired ones
170-
if [ "$(ls -A repaired_wheels/)" ]; then
171-
echo "Replacing original wheels with repaired ones"
172-
cp repaired_wheels/*.whl wheelhouse/
173-
fi
174-
175-
# Final wheel listing
176-
echo "Final wheelhouse contents:"
177-
ls -la wheelhouse/
178-
179-
# For macOS, add a similar step with delocate
180-
- name: Repair macOS wheels
181-
if: runner.os == 'macOS'
149+
# # Add this new step immediately after the Build wheels step
150+
# - name: Repair Linux wheels
151+
# if: runner.os == 'Linux'
152+
# run: |
153+
# echo "Repairing Linux wheels with auditwheel..."
154+
# pip install auditwheel
155+
# mkdir -p repaired_wheels
156+
# for whl in wheelhouse/sparse_numba-*-linux_x86_64.whl; do
157+
# if [ -f "$whl" ]; then
158+
# echo "Repairing wheel: $whl"
159+
# auditwheel repair "$whl" -w repaired_wheels/
160+
# else
161+
# echo "No Linux wheels found to repair"
162+
# fi
163+
# done
164+
#
165+
# # List repaired wheels
166+
# echo "Repaired wheels:"
167+
# ls -la repaired_wheels/
168+
#
169+
# # Replace original wheels with repaired ones
170+
# if [ "$(ls -A repaired_wheels/)" ]; then
171+
# echo "Replacing original wheels with repaired ones"
172+
# cp repaired_wheels/*.whl wheelhouse/
173+
# fi
174+
#
175+
# # Final wheel listing
176+
# echo "Final wheelhouse contents:"
177+
# ls -la wheelhouse/
178+
#
179+
# # For macOS, add a similar step with delocate
180+
# - name: Repair macOS wheels
181+
# if: runner.os == 'macOS'
182+
# run: |
183+
# echo "Repairing macOS wheels with delocate..."
184+
# pip install delocate
185+
# mkdir -p repaired_wheels
186+
# for whl in wheelhouse/sparse_numba-*-macosx_*.whl; do
187+
# if [ -f "$whl" ]; then
188+
# echo "Repairing wheel: $whl"
189+
# delocate-wheel -w repaired_wheels/ "$whl"
190+
# else
191+
# echo "No macOS wheels found to repair"
192+
# fi
193+
# done
194+
#
195+
# # List repaired wheels
196+
# echo "Repaired wheels:"
197+
# ls -la repaired_wheels/
198+
#
199+
# # Replace original wheels with repaired ones
200+
# if [ "$(ls -A repaired_wheels/)" ]; then
201+
# echo "Replacing original wheels with repaired ones"
202+
# cp repaired_wheels/*.whl wheelhouse/
203+
# fi
204+
#
205+
# # Final wheel listing
206+
# echo "Final wheelhouse contents:"
207+
# ls -la wheelhouse/
208+
209+
- name: Fix Permissions
210+
if: runner.os == 'Linux' || runner.os == 'macOS'
182211
run: |
183-
echo "Repairing macOS wheels with delocate..."
184-
pip install delocate
185-
mkdir -p repaired_wheels
186-
for whl in wheelhouse/sparse_numba-*-macosx_*.whl; do
187-
if [ -f "$whl" ]; then
188-
echo "Repairing wheel: $whl"
189-
delocate-wheel -w repaired_wheels/ "$whl"
190-
else
191-
echo "No macOS wheels found to repair"
192-
fi
193-
done
194-
195-
# List repaired wheels
196-
echo "Repaired wheels:"
197-
ls -la repaired_wheels/
198-
199-
# Replace original wheels with repaired ones
200-
if [ "$(ls -A repaired_wheels/)" ]; then
201-
echo "Replacing original wheels with repaired ones"
202-
cp repaired_wheels/*.whl wheelhouse/
203-
fi
204-
205-
# Final wheel listing
206-
echo "Final wheelhouse contents:"
207-
ls -la wheelhouse/
212+
find ./wheelhouse -name "*.so" -exec chmod +x {} \;
213+
find ./wheelhouse -name "*.so" -exec ls -la {} \;
214+
# find ./repaired_wheels -name "*.so" -exec chmod +x {} \;
215+
# find ./repaired_wheels -name "*.so" -exec ls -la {} \;
208216

209217
# Store the built wheels
210218
- name: Upload wheels as artifacts
@@ -213,7 +221,7 @@ jobs:
213221
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
214222
path: |
215223
./wheelhouse/*.whl
216-
./repaired_wheels/*.whl
224+
# ./repaired_wheels/*.whl
217225

218226
# Test job that runs after the wheels are built
219227
test_installation:

0 commit comments

Comments
 (0)