Skip to content

Commit 2756422

Browse files
committed
circleci: Fix invocation of auditwheel to generate manylinux2010 wheels
This commit fixes the following error: auditwheel: error: cannot repair "dist/cmake-3.13.3.post9+g4b54027-cp34-cp34m-linux_x86_64.whl" to "manylinux1_x86_64" ABI because of the presence of too-recent versioned symbols. You'll need to compile the wheel on an older toolchain.
1 parent 4b54027 commit 2756422

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scikit-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ build:
5151
commands:
5252
- |
5353
# Since there are no external shared libraries to bundle into the wheels
54-
# this step will fixup the wheel switching from 'linux' to 'manylinux1' tag
55-
for whl in dist/*$(python -c "import wheel.pep425tags as w; print(w.get_platform())").whl; do
56-
auditwheel repair $whl -w ./dist/
54+
# this step will fixup the wheel switching from 'linux' to 'manylinux2010' tag
55+
arch=$(python -c "import sys;print('x86_64' if sys.maxsize > 2**32 else 'i686')")
56+
for whl in dist/*linux_${arch}.whl; do
57+
auditwheel repair --plat "manylinux2010_${arch}" $whl -w ./dist/
5758
rm $whl
5859
done
5960

0 commit comments

Comments
 (0)