@@ -140,6 +140,48 @@ jobs:
140140 CIBW_BUILD : ${{ matrix.cibw_build }}
141141 CIBW_TEST_REQUIRES : pytest
142142 CIBW_TEST_COMMAND : pytest {package}/tests
143+ CIBW_REPAIR_WHEEL_COMMAND_LINUX : |
144+ # Print system information
145+ echo "=== System Information ==="
146+ uname -a
147+ ldd --version
148+
149+ # Print wheel information
150+ echo "=== Wheel Information ==="
151+ ls -l {wheel}
152+ unzip -l {wheel}
153+
154+ # Print detailed wheel dependencies
155+ echo "=== Original Wheel Dependencies ==="
156+ auditwheel show {wheel}
157+ ldd $(find {wheel} -name "*.so")
158+
159+ echo "=== Attempting wheel repair ==="
160+ # Try repair with maximum verbosity
161+ auditwheel -v repair -w {dest_dir} {wheel} || true
162+
163+ echo "=== Repaired Wheel Information ==="
164+ ls -l {dest_dir}
165+
166+ echo "=== Repaired Wheel Dependencies ==="
167+ for whl in {dest_dir}/*.whl; do
168+ echo "Checking $whl:"
169+ auditwheel show "$whl"
170+ unzip -l "$whl"
171+ done
172+
173+ # Copy the wheel even if repair failed
174+ cp {wheel} {dest_dir}/ || true
175+ CIBW_BEFORE_BUILD : |
176+ python -m pip install --upgrade pip
177+ python -m pip install setuptools wheel
178+ # Print Python environment info
179+ python --version
180+ pip list
181+ echo "=== Build Environment ==="
182+ env | sort
183+ CIBW_BUILD_VERBOSITY : 3
184+ CIBW_ENVIRONMENT : PYTHONVERBOSE=1 CFLAGS="-v" LDFLAGS="-v"
143185
144186 - uses : actions/upload-artifact@v4
145187 with :
0 commit comments