Skip to content
Snippets Groups Projects
Commit b50b1a30 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

pylibmc

parent 8d98b410
No related branches found
No related tags found
No related merge requests found
......@@ -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/^/ /"
......@@ -54,6 +55,19 @@ done
echo "-----> Preparing virtualenv version $(virtualenv --version)"
virtualenv --no-site-packages . | 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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment