Skip to content

Commit

Permalink
Activate the virtualenv if hasn't already been
Browse files Browse the repository at this point in the history
  • Loading branch information
bramwelt committed Jul 29, 2014
1 parent 77d7dfe commit 087dc08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ if [[ ! "$(type -p lessc)" ]]; then
printf "\e[0;32mlessc not found! less must be installed and lessc on your path to build socorro.\e[0m\n" && exit 1
fi

[ -d "$VIRTUAL_ENV" ] || virtualenv -p python2.6 $PWD/socorro-virtualenv
if [ ! -d "$VIRTUAL_ENV" ]; then
virtualenv -p python2.6 ${PWD}/socorro-virtualenv
source ${PWD}/socorro-virtualenv/bin/activate
fi

# install dev + prod dependencies
${VIRTUAL_ENV}/bin/pip install tools/peep-1.2.tar.gz
Expand Down

0 comments on commit 087dc08

Please sign in to comment.