-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevelop.sh
More file actions
37 lines (23 loc) · 756 Bytes
/
develop.sh
File metadata and controls
37 lines (23 loc) · 756 Bytes
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
33
34
35
36
37
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
clean () {
EXTRA="`find "$DIR" | grep -E -e ".*[.]{1}egg.*" -e "__pycache__" `"
rm -rf *.egg-info build dist venv $EXTRA
}
if [ "$1" = 'clean' ]; then
clean
else
virtualenv --clear -p /usr/bin/python3 venv --no-site-packages &&
source venv/bin/activate &&
pip3 install -e $DIR &&
alias test_package='python $DIR/setup.py test' &&
alias develop='source $DIR/develop.sh' &&
printf "
==================================================================
SUCCESS
You are now running a virtual environment for RISCY-AS run
'deactivate' to leave the environment. Run 'develop clean' to
clean up.
==================================================================
"
fi