Skip to content

Commit

Permalink
set and use PYTHON_EXE
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Mar 4, 2020
1 parent 9133448 commit b659543
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,18 @@ function install_wheel {
local wheelhouse=$(abspath ${WHEEL_SDIR:-wheelhouse})
if [ -n "$TEST_DEPENDS" ]; then
while read TEST_DEPENDENCY; do
python -mpip install $(pip_opts) $@ $TEST_DEPENDENCY
$PYTHON_EXE -mpip install $(pip_opts) $@ $TEST_DEPENDENCY
done <<< "$TEST_DEPENDS"
fi
python -mpip install packaging
$PYTHON_EXE -mpip install packaging
local supported_wheels=$(python $MULTIBUILD_DIR/supported_wheels.py $wheelhouse/*.whl)
if [ -z "$supported_wheels" ]; then
echo "ERROR: no supported wheels found"
ls $wheelhouse/*.whl
exit 1
fi
# Install compatible wheel
python -mpip install $(pip_opts) $@ $supported_wheels
$PYTHON_EXE -mpip install $(pip_opts) $@ $supported_wheels
}

function install_run {
Expand Down
7 changes: 7 additions & 0 deletions docker_test_wrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# Install and test steps on Linux
set -e

# "python" and "pip" are already on the path as part of the docker
# startup code in choose_python.sh, but the following are required and not
# necessarily already set

PYTHON_EXE=${PYTHON_EXE:-python}
PIP_CMD=${PIP_CMD:-pip}

# Get needed utilities
MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}")
source $MULTIBUILD_DIR/common_utils.sh
Expand Down

0 comments on commit b659543

Please sign in to comment.