forked from johnpwakefield/mevlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activate_venv.sh
32 lines (20 loc) · 963 Bytes
/
activate_venv.sh
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
# This is a script used to setup a virtual environment that includes the
# mevlib package in path and enter that virtual environment to develop the
# package. (The package will not be cached in the way most packages are.)
# Because we want this to be executed in the current shell rather than
# another bash process, you must 'source' this file. In other words,
# $ bash ./start_developing.sh
# will not work, but
# $ source ./start_developing.sh
# will.
python3 -m venv virtualenv
source ./virtualenv/bin/activate
pip3 install wheel # not doing this first can cause pip errors
pip3 install -r requirements.txt
python3 setup.py develop
eval "$(_MEVTABLE_COMPLETE=bash_source mevtable)"
echo "You are now ready to develop the package and/or run scripts in this "
echo "package without adjusting the path. To leave this virtual environment,"
echo "use 'deactivate'."
# the following command will leave the virtual environment
#deactivate