Don't audit or delocate wheels that are dependencies of the package

Wheels that are dependencies are also output by `pip wheel`. These can
cause auditwheel trouble, and we're not interested in them anyway
This commit is contained in:
Joe Rickerby
2017-04-12 09:49:38 +01:00
parent 3f6a943b6d
commit d5fa5475d4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ 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/*.whl; do
for whl in /tmp/linux_wheels/{package_name}-*.whl; do
auditwheel repair "$whl" -w /output
done
+1 -1
View File
@@ -61,7 +61,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
# build the wheel to temp dir
temp_wheel_dir = '/tmp/tmpwheel%s' % config.version
shell([pip, 'wheel', project_dir, '-w', temp_wheel_dir], env=env)
temp_wheel = glob(temp_wheel_dir+'/*.whl')[0]
temp_wheel = glob('%s/%s-*.whl' % (temp_wheel_dir, package_name))[0]
# list the dependencies
shell(['delocate-listdeps', temp_wheel], env=env)