Skip to content

Commit cec6563

Browse files
committed
alternative fix for pypa#11
1 parent 7a510c7 commit cec6563

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

cibuildwheel/linux.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
5757
PATH=$PYBIN:$PATH sh -c {before_build}
5858
fi
5959
60-
"$PYBIN/pip" wheel . -w /tmp/linux_wheels --no-deps
60+
"$PYBIN/pip" wheel . -w /tmp/linux_wheels
6161
done
6262
6363
for whl in /tmp/linux_wheels/*.whl; do

cibuildwheel/macos.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ def shell(args, env=None, cwd=None):
6060

6161
# build the wheel to temp dir
6262
temp_wheel_dir = '/tmp/tmpwheel%s' % config.version
63-
shell([pip, 'wheel', project_dir, '-w', temp_wheel_dir, '--no-deps'], env=env)
64-
temp_wheel = glob(temp_wheel_dir+'/*.whl')[0]
63+
shell([pip, 'wheel', project_dir, '-w', temp_wheel_dir], env=env)
6564

66-
if temp_wheel.endswith('none-any.whl'):
67-
# pure python wheel - just copy to output_dir
68-
shell(['cp', temp_wheel, output_dir], env=env)
69-
else:
70-
# list the dependencies
71-
shell(['delocate-listdeps', temp_wheel], env=env)
72-
# rebuild the wheel with shared libraries included and place in output dir
73-
shell(['delocate-wheel', '-w', output_dir, temp_wheel], env=env)
65+
for temp_wheel in glob(temp_wheel_dir+'/*.whl'):
66+
if temp_wheel.endswith('none-any.whl'):
67+
# pure python wheel - just copy to output_dir
68+
shell(['cp', temp_wheel, output_dir], env=env)
69+
else:
70+
# list the dependencies
71+
shell(['delocate-listdeps', temp_wheel], env=env)
72+
# rebuild the wheel with shared libraries included and place in output dir
73+
shell(['delocate-wheel', '-w', output_dir, temp_wheel], env=env)
7474

7575
# install the wheel
7676
shell([pip, 'install', package_name, '--no-index', '--find-links', output_dir], env=env)

0 commit comments

Comments
 (0)