Skip to content

Commit

Permalink
Alternate venv dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriedenhagen-ui committed Aug 27, 2014
1 parent d8d5963 commit 8992484
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/sh
venv=`basename $PWD`
virtualenv -p /usr/bin/python2.7 .venv/$venv
. .venv/${venv}/bin/activate
pip -q install -r requirements.txt
#!/bin/bash
VENV_BASE=${VENV_BASE:-.venv}
VENV_NAME=$(basename $PWD)
VENV_DIR=${VENV_BASE}/${VENV_NAME}
virtualenv -p /usr/bin/python2.7 $VENV_DIR
. $VENV_DIR/bin/activate
if [ -r /etc/mam_proxy.sh ]
then
. /etc/mam_proxy.sh
export http_proxy=$ui_http_proxy
export https_proxy=$ui_http_proxy
pip install -r requirements.txt
else
pip install -r requirements.txt
fi

0 comments on commit 8992484

Please sign in to comment.