forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetch_eggs.py
executable file
·32 lines (23 loc) · 918 Bytes
/
fetch_eggs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python
from os import pardir
from os.path import join, abspath, dirname
from sys import exit
msg = """
Eggs in this release of Galaxy have been replaced by Python's newer packaging
format, wheels. Please use scripts/common_startup.sh to set up your
environment:
cd {dir} && ./scripts/common_startup.sh
This will create a Python virtualenv and install Galaxy's dependencies into it.
If you start Galaxy using means other than run.sh (as you probably do if you
are seeing this message), be sure to activate the virtualenv before starting,
using:
. {venv}/bin/activate
If you already run Galaxy in its own virtualenv, you can reuse your existing
virtualenv with:
cd {dir} && ./scripts/common_startup.sh --skip-venv
"""
galaxy = abspath(join(dirname(__file__), pardir))
venv = join(galaxy, '.venv')
print msg.format(dir=abspath(join(dirname(__file__), pardir)),
venv=venv)
exit(1)