From 4dc8bf447ff4fd50bbe0fdbf024f39db2c06d273 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Tue, 12 Sep 2017 12:37:51 +0200 Subject: [PATCH] Adding $PYBIN to path when calling pip wheel --- cibuildwheel/linux.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index 76952fcf..d1bf1a15 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -62,11 +62,11 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be mkdir /tmp/delocated_wheel if [ ! -z {before_build} ]; then - PATH=$PYBIN:$PATH sh -c {before_build} + PATH="$PYBIN:$PATH" sh -c {before_build} fi # Build that wheel - "$PYBIN/pip" wheel . -w /tmp/built_wheel --no-deps + PATH="$PYBIN:$PATH" "$PYBIN/pip" wheel . -w /tmp/built_wheel --no-deps built_wheel=(/tmp/built_wheel/*.whl) # Delocate the wheel @@ -91,7 +91,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be # Run the tests from a different directory if [ ! -z {test_command} ]; then pushd $HOME - PATH=$PYBIN:$PATH sh -c {test_command} + PATH="$PYBIN:$PATH" sh -c {test_command} popd fi