Skip to content

Solving problems in OS X when library has dependencies #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions cibuildwheel/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
PATH=$PYBIN:$PATH sh -c {before_build}
fi

# install the package first to take care of dependencies
"$PYBIN/pip" install .

"$PYBIN/pip" wheel --no-deps . -w /tmp/linux_wheels
done

Expand All @@ -77,8 +74,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
# Install packages and test
for PYBIN in {pybin_paths}; do
# Install the wheel we just built
"$PYBIN/pip" install {package_name} \
--upgrade --force-reinstall --no-deps --no-index -f /output
"$PYBIN/pip" install {package_name} --upgrade --force-reinstall -f /output

# Install any requirements to run the tests
if [ ! -z "{test_requires}" ]; then
Expand Down
6 changes: 1 addition & 5 deletions cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ def shell(args, env=None, cwd=None):
before_build_prepared = prepare_command(before_build, python=python, pip=pip)
shell(shlex.split(before_build_prepared), env=env)

# install the package first to take care of dependencies
shell([pip, 'install', project_dir], env=env)

# build the wheel to temp dir
temp_wheel_dir = '/tmp/tmpwheel%s' % config.version
shell([pip, 'wheel', project_dir, '-w', temp_wheel_dir, '--no-deps'], env=env)
Expand All @@ -76,8 +73,7 @@ def shell(args, env=None, cwd=None):
shell(['delocate-wheel', '-w', output_dir, temp_wheel], env=env)

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

# test the wheel
if test_requires:
Expand Down
7 changes: 1 addition & 6 deletions cibuildwheel/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,11 @@ def shell(args, env=None, cwd=None):
before_build_prepared = prepare_command(before_build, python='python', pip='pip')
shell([before_build_prepared], env=env)

# install the package first to take care of dependencies
shell(['pip', 'install', project_dir], env=env)

# build the wheel
shell(['pip', 'wheel', project_dir, '-w', output_dir, '--no-deps'], env=env)

# install the wheel
shell(['pip', 'install', package_name, '--upgrade',
'--force-reinstall', '--no-deps', '--no-index', '-f',
output_dir], env=env)
shell(['pip', 'install', package_name, '--upgrade', '--force-reinstall', '-f', output_dir], env=env)

# test the wheel
if test_requires:
Expand Down