Drop support for Python 3.6, add Python 3.10

This commit is contained in:
Nicola Soranzo
2021-12-08 08:14:10 +00:00
parent 5b7582ae05
commit 0bdc93a7cc
35 changed files with 148 additions and 257 deletions
+2 -2
View File
@@ -7,14 +7,14 @@ import sys
def check_python():
if sys.version_info[:2] >= (3, 6):
if sys.version_info[:2] >= (3, 7):
# supported
return
else:
version_string = '.'.join(str(_) for _ in sys.version_info[:3])
msg = """\
ERROR: Your Python version is: %s
Galaxy is currently supported on Python >=3.6 .
Galaxy is currently supported on Python >=3.7 .
To run Galaxy, please install a supported Python version.
If a supported version is already installed but is not your default,
https://docs.galaxyproject.org/en/latest/admin/python.html contains instructions
+1 -1
View File
@@ -116,7 +116,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>=19.0' 'virtualenv>=16'
$CONDA_EXE create --yes --override-channels --channel conda-forge --channel defaults --name "$GALAXY_CONDA_ENV" 'python=3.7' 'pip>=19.0' 'virtualenv>=16'
unset __CONDA_INFO
fi
conda_activate