Skip to content

Commit

Permalink
requirements and env
Browse files Browse the repository at this point in the history
  • Loading branch information
amorton committed Jun 19, 2012
0 parents commit fa53f89
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions bootstrap-dev-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-"/tmp/downloads/pip"}
mkdir -p $DOWNLOAD_CACHE
sudo chmod 777 $DOWNLOAD_CACHE

# When installing on a prod server the virtualenv exe will be in the
# non default python install. Check the env var so we can reference it
# directly.
VIRTUALENV_PATH=${VIRTUALENV_PATH:-"virtualenv"}
$VIRTUALENV_PATH --no-site-packages --distribute .dev-env

# important that we use easy_install to install readline
# otherwise ipython will not pick it up inside the env.
.dev-env/bin/easy_install readline

.dev-env/bin/pip install --download-cache=$DOWNLOAD_CACHE -r requirements.txt
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tornado>=2.2.1
pycassa>=1.6.0
Mako>=0.7.0

0 comments on commit fa53f89

Please sign in to comment.