-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Python3 virtualenv by default
- Allow specifying Python to use to create virtualenv using GALAXY_PYTHON environment variable. - Integrate Python support docs from https://galaxyproject.org/admin/python/ - Update virtualenv installation to use v16.7.9
- Loading branch information
Showing
8 changed files
with
85 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Supported Python versions | ||
|
||
Galaxy's core functionality is currently supported on Python **2.7** (although | ||
deprecated) and **>=3.5** . | ||
|
||
If Galaxy complains about the version of Python you are using, check that | ||
`python --version` reports a supported version. If this is not the case: | ||
|
||
1. Completely remove the virtualenv used by Galaxy, e.g. with: | ||
`rm -rf /path/to/galaxy/.venv` | ||
|
||
2. Let Galaxy know the path of the correct version of Python. | ||
|
||
- If you are using Galaxy >= 20.05, just execute: | ||
`export GALAXY_PYTHON=/path/to/python` | ||
- If instead you are using an older version of Galaxy, you can manipulate | ||
your shell's `$PATH` variable to place the correct version first. This can | ||
be done for just Python by creating a new directory, adding a symbolic | ||
link to python in there, and putting that directory at the front of | ||
`$PATH`: | ||
|
||
```sh | ||
% mkdir ~/galaxy-python | ||
% ln -s /path/to/python ~/galaxy-python/python | ||
% export PATH=~/galaxy-python:$PATH | ||
``` | ||
|
||
3. Start Galaxy again. | ||
|
||
N.B. If you have compiled your own Python interpreter from source, please ensure | ||
that the `ssl`, `sqlite3`, `curses` and `bz2` modules were built and can be | ||
imported after installation. These "extra" modules are built at the end of the | ||
compilation process and are required by the Galaxy framework. If building on | ||
Linux, you may need to install the appropriate `-dev` packages for OpenSSL and | ||
Bzip2. You may also need to build Python with shared libraries | ||
(`--enable-shared`). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters