Skip to content

Instantly share code, notes, and snippets.

@tsaavik
Created January 25, 2017 18:10
Show Gist options
  • Save tsaavik/592b618d2c666f7f5a28c781b0eac87b to your computer and use it in GitHub Desktop.
Save tsaavik/592b618d2c666f7f5a28c781b0eac87b to your computer and use it in GitHub Desktop.
#setup my_project via venv
proj_path="/usr/local/scripts/my_project/"
venv_path="${proj_path}/venv"
if [[ ! -d ${venv_path} ]] ;then
echo "Installing virtualenv ..."
virtualenv ${venv_path}
source ${venv_path}/bin/activate
pip install -r ${proj_path}/dependencies.txt
# Following 2 lines only needed if exporting libs
#cd ${proj_path}
#python setup.py sdist
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment