scripts
bootstrap-virtualenv.sh
python-lint.py
teeth_agent
twisted
.gitignore
LICENSE
Makefile
README.md
dev-requirements.txt
requirements.txt
setup.py
24 lines
529 B
Bash
24 lines
529 B
Bash
![]() |
#!/bin/bash
|
||
|
#
|
||
|
# Create an initial virtualenv based on the VE_DIR environment variable (.ve)
|
||
|
# by default. This is used by the Makefile `make env` to allow bootstrapping in
|
||
|
# environments where virtualenvwrapper is unavailable or unappropriate. Such
|
||
|
# as on Jenkins.
|
||
|
#
|
||
|
|
||
|
set -e
|
||
|
|
||
|
VE_DIR=${VE_DIR:=.ve}
|
||
|
|
||
|
if [[ -d ${VE_DIR} ]]; then
|
||
|
echo "Skipping build virtualenv"
|
||
|
else
|
||
|
echo "Building complete virtualenv"
|
||
|
virtualenv ${VE_DIR}
|
||
|
fi
|
||
|
|
||
|
source ${VE_DIR}/bin/activate
|
||
|
|
||
|
pip install -r requirements.txt -r dev-requirements.txt
|
||
|
|