Commit d89110eb authored by Matthew Brett's avatar Matthew Brett
Browse files

Keep trying to add the pip args, with correct tests

parent ecdd1492
......@@ -292,7 +292,8 @@ function get_macpython_environment {
function repair_wheelhouse {
local wheelhouse=$1
pip install delocate
check_pip
$PIP_CMD install delocate
delocate-listdeps $wheelhouse/*.whl # lists library dependencies
# repair_wheelhouse can take more than 10 minutes without generating output
# but jobs that do not generate output within 10 minutes are aborted by travis-ci.
......
......@@ -31,6 +31,9 @@ fi
if ! [[ "$implementer_version" =~ $requested_version ]]; then
ingest "Wrong python version: ${implementer_version}!=${requested_version}"
fi
if [ "$python_mm" == "2.6" ]; then
expected_pip_args=" --trusted-host=pypi.python.org"
fi
if [ -n "$VENV" ]; then # in virtualenv
# Correct pip and Python versions should be on PATH
......@@ -44,7 +47,7 @@ if [ -n "$VENV" ]; then # in virtualenv
if [ "$PYTHON_EXE" != "$PWD/venv/bin/python" ]; then
ingest "Wrong virtualenv python '$PYTHON_EXE'"
fi
if [ "$PIP_CMD" != "$PWD/venv/bin/pip" ]; then
if [ "$PIP_CMD" != "${PWD}/venv/bin/pip${expected_pip_args}" ]; then
ingest "Wrong virtualenv pip '$PIP_CMD'"
fi
else # not virtualenv
......@@ -52,7 +55,7 @@ else # not virtualenv
if [ "$PYTHON_EXE" != "$macpie_bin/python$python_mm" ]; then
ingest "Wrong macpython python cmd '$PYTHON_EXE'"
fi
if [ "$PIP_CMD" != "sudo $macpie_bin/pip$python_mm" ]; then
if [ "$PIP_CMD" != "sudo $macpie_bin/pip${python_mm}${expected_pip_args}" ]; then
ingest "Wrong macpython pip '$PIP_CMD'"
fi
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment