Skip to content

Commit

Permalink
Merge branch 'pylibmc'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Nov 11, 2011
2 parents 7241043 + b50b1a3 commit f9cbe70
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/compile
Expand Up @@ -11,6 +11,7 @@ CACHE_DIR=$2
NAME=$($BIN_DIR/detect $BUILD_DIR)
PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-$CACHE_DIR/pip_downloads}
VIRTUALENV_DIRS="bin include lib"
VENDORED_MEMCACHED="http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz"

indent() {
RE="s/^/ /"
Expand Down Expand Up @@ -54,6 +55,19 @@ done
echo "-----> Preparing virtualenv version $(virtualenv --version)"
virtualenv --no-site-packages --distribute . | indent


# if pylibmc within requirements, use vendored libmemcached
if grep -Fxq "pylibmc" requirements.txt
then
echo "-----> Noticed pylibmc. Bootstrapping libmemcached."
curl -O $VENDORED_MEMCACHED
tar -zxvf vendor-libmemcached.tar.gz
ls
fi




# if Django, append settings
if [ "$NAME" = "Python/Django" ]; then
echo "-----> Django settings injection"
Expand Down

0 comments on commit f9cbe70

Please sign in to comment.