Skip to content

Commit 8618df3

Browse files
committed
Reopening PR pypa#11 until solution is found
1 parent 5b7f105 commit 8618df3

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

cibuildwheel/linux.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
5959
PATH=$PYBIN:$PATH sh -c {before_build}
6060
fi
6161
62-
# install the package first to take care of dependencies
63-
"$PYBIN/pip" install .
64-
6562
"$PYBIN/pip" wheel --no-deps . -w /tmp/linux_wheels
6663
done
6764
@@ -77,8 +74,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
7774
# Install packages and test
7875
for PYBIN in {pybin_paths}; do
7976
# Install the wheel we just built
80-
"$PYBIN/pip" install {package_name} \
81-
--upgrade --force-reinstall --no-deps --no-index -f /output
77+
"$PYBIN/pip" install {package_name} -f /output
8278
8379
# Install any requirements to run the tests
8480
if [ ! -z "{test_requires}" ]; then

cibuildwheel/macos.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ def shell(args, env=None, cwd=None):
5858
before_build_prepared = prepare_command(before_build, python=python, pip=pip)
5959
shell(shlex.split(before_build_prepared), env=env)
6060

61-
# install the package first to take care of dependencies
62-
shell([pip, 'install', project_dir], env=env)
63-
6461
# build the wheel to temp dir
6562
temp_wheel_dir = '/tmp/tmpwheel%s' % config.version
6663
shell([pip, 'wheel', project_dir, '-w', temp_wheel_dir, '--no-deps'], env=env)
@@ -76,8 +73,7 @@ def shell(args, env=None, cwd=None):
7673
shell(['delocate-wheel', '-w', output_dir, temp_wheel], env=env)
7774

7875
# now install the package from the generated wheel
79-
shell([pip, 'install', package_name, '--upgrade', '--force-reinstall',
80-
'--no-deps', '--no-index', '--find-links', output_dir], env=env)
76+
shell([pip, 'install', package_name, '-f', output_dir], env=env)
8177

8278
# test the wheel
8379
if test_requires:

cibuildwheel/windows.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,11 @@ def shell(args, env=None, cwd=None):
6666
before_build_prepared = prepare_command(before_build, python='python', pip='pip')
6767
shell([before_build_prepared], env=env)
6868

69-
# install the package first to take care of dependencies
70-
shell(['pip', 'install', project_dir], env=env)
71-
7269
# build the wheel
7370
shell(['pip', 'wheel', project_dir, '-w', output_dir, '--no-deps'], env=env)
7471

7572
# install the wheel
76-
shell(['pip', 'install', package_name, '--upgrade',
77-
'--force-reinstall', '--no-deps', '--no-index', '-f',
78-
output_dir], env=env)
73+
shell(['pip', 'install', package_name, '-f', output_dir], env=env)
7974

8075
# test the wheel
8176
if test_requires:

0 commit comments

Comments
 (0)