From 262ab8386c9dec3e0f96b0ea4690ee540a276463 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Fri, 3 Dec 2021 10:28:42 +0000 Subject: [PATCH] Increase pip minimum version in startup script Pip <19.0 cannot install abi3 wheels, so for example on Python >3.6 it would (try to) build a cryptography wheel, which is not needed since cp36-abi3 wheels are already available on PyPI: https://cryptography.io/en/latest/faq/#why-are-there-no-wheels-for-my-python3-x-version Fix https://github.com/galaxyproject/galaxy/issues/13023 . xref: https://github.com/galaxyproject/planemo/issues/1208#issuecomment-984831111 --- scripts/common_startup.sh | 4 ++-- scripts/common_startup_functions.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/common_startup.sh b/scripts/common_startup.sh index ba91a7226fa..278ba441ad8 100755 --- a/scripts/common_startup.sh +++ b/scripts/common_startup.sh @@ -115,7 +115,7 @@ if [ $SET_VENV -eq 1 ] && [ $CREATE_VENV -eq 1 ]; then echo "Creating Conda environment for Galaxy: $GALAXY_CONDA_ENV" echo "To avoid this, use the --no-create-venv flag or set \$GALAXY_CONDA_ENV to an" echo "existing environment before starting Galaxy." - $CONDA_EXE create --yes --override-channels --channel conda-forge --channel defaults --name "$GALAXY_CONDA_ENV" 'python=3.6' 'pip>=9' 'virtualenv>=16' + $CONDA_EXE create --yes --override-channels --channel conda-forge --channel defaults --name "$GALAXY_CONDA_ENV" 'python=3.6' 'pip>=19.0' 'virtualenv>=16' unset __CONDA_INFO fi conda_activate @@ -181,7 +181,7 @@ fi : ${PYPI_INDEX_URL:="https://pypi.python.org/simple"} : ${GALAXY_DEV_REQUIREMENTS:="./lib/galaxy/dependencies/dev-requirements.txt"} if [ $REPLACE_PIP -eq 1 ]; then - python -m pip install 'pip>=8.1' + python -m pip install 'pip>=19.0' fi requirement_args="-r requirements.txt" diff --git a/scripts/common_startup_functions.sh b/scripts/common_startup_functions.sh index 0d3e664f152..49e8e46bb84 100644 --- a/scripts/common_startup_functions.sh +++ b/scripts/common_startup_functions.sh @@ -113,7 +113,7 @@ setup_python() { set_conda_exe if [ -n "$CONDA_EXE" ] && \ check_conda_env ${GALAXY_CONDA_ENV:="_galaxy_"}; then - # You almost surely have pip >= 8.1 and running `conda install ... pip>=8.1` every time is slow + # You almost surely have the required minimum pip version and running `conda install ... pip>=` every time is slow REPLACE_PIP=0 [ -n "$PYTHONPATH" ] && { echo 'Unsetting $PYTHONPATH'; unset PYTHONPATH; } if [ "$CONDA_DEFAULT_ENV" != "$GALAXY_CONDA_ENV" ]; then