Don't ignore dependency wheels, copy them to output if pure wheels

This commit is contained in:
Joe Rickerby
2017-04-13 13:48:57 +01:00
parent bdbbf18e43
commit 083ece8bbc
2 changed files with 16 additions and 7 deletions
+7 -2
View File
@@ -54,8 +54,13 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
"$PYBIN/pip" wheel . -w /tmp/linux_wheels
done
for whl in /tmp/linux_wheels/{package_name}-*.whl; do
auditwheel repair "$whl" -w /output
for whl in /tmp/linux_wheels/*.whl; do
if [[ "$whl" == *none-any.whl ]]; then
# pure python wheel - just copy to the output
cp "$whl" /output
else
auditwheel repair "$whl" -w /output
fi
done
# Install packages and test