Skip to content

Commit 17ccf6b

Browse files
committed
Solving the case where auditwheel repair creates multiple wheels for different platforms
1 parent 755b54c commit 17ccf6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cibuildwheel/linux.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ def build(project_dir, output_dir, test_command, test_requires, before_build, bu
8484
if [[ "$built_wheel" == *none-any.whl ]]; then
8585
# pure python wheel - just copy
8686
mv "$built_wheel" /tmp/delocated_wheel
87+
delocated_wheel=(/tmp/delocated_wheel/*.whl)
8788
else
8889
auditwheel repair --plat {platform_tag} "$built_wheel" -w /tmp/delocated_wheel
90+
delocated_wheel=(/tmp/delocated_wheel/*-{platform_tag}.whl)
8991
fi
90-
delocated_wheel=(/tmp/delocated_wheel/*.whl)
9192
9293
# Install the wheel we just built
9394
"$PYBIN/pip" install "$delocated_wheel"

0 commit comments

Comments
 (0)