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:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user