Don't ignore dependency wheels, copy them to output if pure wheels
This commit is contained in:
@@ -54,8 +54,13 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
|
|||||||
"$PYBIN/pip" wheel . -w /tmp/linux_wheels
|
"$PYBIN/pip" wheel . -w /tmp/linux_wheels
|
||||||
done
|
done
|
||||||
|
|
||||||
for whl in /tmp/linux_wheels/{package_name}-*.whl; do
|
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
|
auditwheel repair "$whl" -w /output
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Install packages and test
|
# Install packages and test
|
||||||
|
|||||||
@@ -61,8 +61,12 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
|
|||||||
# build the wheel to temp dir
|
# build the wheel to temp dir
|
||||||
temp_wheel_dir = '/tmp/tmpwheel%s' % config.version
|
temp_wheel_dir = '/tmp/tmpwheel%s' % config.version
|
||||||
shell([pip, 'wheel', project_dir, '-w', temp_wheel_dir], env=env)
|
shell([pip, 'wheel', project_dir, '-w', temp_wheel_dir], env=env)
|
||||||
temp_wheel = glob('%s/%s-*.whl' % (temp_wheel_dir, package_name))[0]
|
temp_wheel = glob(temp_wheel_dir+'/*.whl')[0]
|
||||||
|
|
||||||
|
if temp_wheel.endswith('none-any.whl'):
|
||||||
|
# pure python wheel - just copy to output_dir
|
||||||
|
shell(['cp', temp_wheel, output_dir], env=env)
|
||||||
|
else:
|
||||||
# list the dependencies
|
# list the dependencies
|
||||||
shell(['delocate-listdeps', temp_wheel], env=env)
|
shell(['delocate-listdeps', temp_wheel], env=env)
|
||||||
# rebuild the wheel with shared libraries included and place in output dir
|
# rebuild the wheel with shared libraries included and place in output dir
|
||||||
|
|||||||
Reference in New Issue
Block a user