Commit 4857b03f authored by Matthew Brett's avatar Matthew Brett
Browse files

Merge branch 'devel'

* devel:
  Continue search for delocate install fix
  Fix (maybe) command for downgrading wheel package
  BF: fix breakage for wheel 0.30 and Python 2.6
  Add MB_PYTHON_VERSION env var to test container
parents 07480be3 08c0538f
...@@ -294,10 +294,21 @@ function get_macpython_environment { ...@@ -294,10 +294,21 @@ function get_macpython_environment {
export PYTHON_EXE PIP_CMD export PYTHON_EXE PIP_CMD
} }
function repair_wheelhouse { function install_delocate {
local wheelhouse=$1
check_pip check_pip
if [ $(lex_ver $(get_py_mm)) -lt $(lex_ver 2.7) ]; then
# Wheel 0.30 doesn't work for Python 2.6; see:
# https://github.com/pypa/wheel/issues/193
$PIP_CMD install "wheel<=0.29"
fi
$PIP_CMD install delocate $PIP_CMD install delocate
}
function repair_wheelhouse {
local wheelhouse=$1
install_delocate
delocate-listdeps $wheelhouse/*.whl # lists library dependencies delocate-listdeps $wheelhouse/*.whl # lists library dependencies
# repair_wheelhouse can take more than 10 minutes without generating output # 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. # but jobs that do not generate output within 10 minutes are aborted by travis-ci.
......
...@@ -7,7 +7,7 @@ echo "virtualenv on path: $(which virtualenv)" ...@@ -7,7 +7,7 @@ echo "virtualenv on path: $(which virtualenv)"
echo "virtualenv cmd: $VIRTUALENV_CMD" echo "virtualenv cmd: $VIRTUALENV_CMD"
# Check that a pip install puts scripts on path # Check that a pip install puts scripts on path
$PIP_CMD install delocate install_delocate
delocate-listdeps --version || ingest "Delocate not installed right" delocate-listdeps --version || ingest "Delocate not installed right"
# Python version from Python to compare against required # Python version from Python to compare against required
......
...@@ -111,6 +111,7 @@ function install_run { ...@@ -111,6 +111,7 @@ function install_run {
docker pull $docker_image docker pull $docker_image
docker run --rm \ docker run --rm \
-e PYTHON_VERSION="$MB_PYTHON_VERSION" \ -e PYTHON_VERSION="$MB_PYTHON_VERSION" \
-e MB_PYTHON_VERSION="$MB_PYTHON_VERSION" \
-e UNICODE_WIDTH="$UNICODE_WIDTH" \ -e UNICODE_WIDTH="$UNICODE_WIDTH" \
-e WHEEL_SDIR="$WHEEL_SDIR" \ -e WHEEL_SDIR="$WHEEL_SDIR" \
-e MANYLINUX_URL="$MANYLINUX_URL" \ -e MANYLINUX_URL="$MANYLINUX_URL" \
......
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