From ada46aaf43e8e6f1697925b2fd5f27b08b50f27c Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 3 Feb 2020 20:50:11 +0000 Subject: [PATCH] Fix exports / version check ordering --- cibuildwheel/linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index db066394..adffa8c7 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -91,13 +91,13 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef PYBIN="{config_python_bin}" export PATH="$PYBIN:$PATH" + {environment_exports} + # check the active python and pip are in PYBIN # if `test` returns false, the script will exit due to errexit test "$(which pip)" = "$PYBIN/pip" test "$(which python)" = "$PYBIN/python" - {environment_exports} - if [ ! -z {before_build} ]; then sh -c {before_build} fi