Skip to content

Commit

Permalink
Issue clear warning when using Galaxy within planemo's virtualenv.
Browse files Browse the repository at this point in the history
Stipulate warning added in 4a5f3cc only applies if you are not using the brew install.
  • Loading branch information
jmchilton committed Dec 19, 2014
1 parent 4a5f3cc commit aa80141
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ install with ``pip``.
% virtualenv .venv; . .venv/bin/activate
% pip install git+https://github.com/galaxyproject/planemo.git

To prevent errors:
* Please do not install Planemo into the same virtualenv with Galaxy.
* Please do not use Galaxy from Planemo's virtualenv.
If *not* using the brew recipe, Planemo and Galaxy `may conflict
<http://planemo.readthedocs.org/en/latest/installation.html>`_ with
each other - to prevent errors:

* Do not install Planemo into Galaxy's virtualenv.
* Do not use Galaxy from Planemo's virtualenv.

This quick start will assume you will have a directory with one or more
tool XML files. If none is available, one can be quickly create for
Expand Down
7 changes: 7 additions & 0 deletions galaxy/eggs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PLANEMO_WARNING = ("It looks like you are trying to use Galaxy from within a "
"Python environment that has planemo installed. Please "
"either deactivate planemo's virtual environment, set up "
"one for Galaxy, or uninstall planemo from this "
"environment.")

raise ImportError(PLANEMO_WARNING)
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'planemo.commands',
'planemo.reports',
'galaxy',
'galaxy.eggs',
'galaxy.tools',
'galaxy.tools.linters',
'galaxy.tools.deps',
Expand Down

0 comments on commit aa80141

Please sign in to comment.