Commit f7e05410 authored by Kenneth Reitz's avatar Kenneth Reitz

.heroku folder

parent 34dc65d9
......@@ -55,21 +55,28 @@ done
echo "-----> Preparing virtualenv version $(virtualenv --version)"
virtualenv --no-site-packages . | indent
# create set-aside .heroku folder.
mkdir .heroku
# if pylibmc within requirements, use vendored libmemcached
if grep -Fxq "pylibmc" requirements.txt
then
echo "-----> Noticed pylibmc. Bootstrapping libmemcached."
curl -s -L -O http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz
tar -zxvf vendor-libmemcached.tar.gz > /dev/null
rm vendor-libmemcached.tar.gz
cd .heroku
if ![ -d "vendor" ]; then
curl -s -L -O http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz
tar -zxvf vendor-libmemcached.tar.gz > /dev/null
rm vendor-libmemcached.tar.gz
fi
export LIBMEMCACHED=$(pwd)/vendor
cd ..
fi
# if Django, append settings
if [ "$NAME" = "Python/Django" ]; then
echo "-----> Django settings injection"
......
......@@ -16,8 +16,8 @@ EOF
if grep -Fxq "pylibmc" $BUILD_DIR/requirements.txt
then
cat <<EOF
LIBRARY_PATH: ./vendor/lib
LD_LIBRARY_PATH: ./vendor/lib
LIBRARY_PATH: .heroku/vendor/lib
LD_LIBRARY_PATH: .heroku/vendor/lib
EOF
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment