Fix exports / version check ordering
This commit is contained in:
@@ -91,13 +91,13 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
|
|||||||
PYBIN="{config_python_bin}"
|
PYBIN="{config_python_bin}"
|
||||||
export PATH="$PYBIN:$PATH"
|
export PATH="$PYBIN:$PATH"
|
||||||
|
|
||||||
|
{environment_exports}
|
||||||
|
|
||||||
# check the active python and pip are in PYBIN
|
# check the active python and pip are in PYBIN
|
||||||
# if `test` returns false, the script will exit due to errexit
|
# if `test` returns false, the script will exit due to errexit
|
||||||
test "$(which pip)" = "$PYBIN/pip"
|
test "$(which pip)" = "$PYBIN/pip"
|
||||||
test "$(which python)" = "$PYBIN/python"
|
test "$(which python)" = "$PYBIN/python"
|
||||||
|
|
||||||
{environment_exports}
|
|
||||||
|
|
||||||
if [ ! -z {before_build} ]; then
|
if [ ! -z {before_build} ]; then
|
||||||
sh -c {before_build}
|
sh -c {before_build}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user