mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Drop support for Python 3.6, add Python 3.10
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user