Commit f7e05410 authored by Kenneth Reitz's avatar Kenneth Reitz

.heroku folder

parent 34dc65d9
...@@ -55,21 +55,28 @@ done ...@@ -55,21 +55,28 @@ done
echo "-----> Preparing virtualenv version $(virtualenv --version)" echo "-----> Preparing virtualenv version $(virtualenv --version)"
virtualenv --no-site-packages . | indent virtualenv --no-site-packages . | indent
# create set-aside .heroku folder.
mkdir .heroku
# if pylibmc within requirements, use vendored libmemcached # if pylibmc within requirements, use vendored libmemcached
if grep -Fxq "pylibmc" requirements.txt if grep -Fxq "pylibmc" requirements.txt
then then
echo "-----> Noticed pylibmc. Bootstrapping libmemcached." echo "-----> Noticed pylibmc. Bootstrapping libmemcached."
curl -s -L -O http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz cd .heroku
tar -zxvf vendor-libmemcached.tar.gz > /dev/null
rm vendor-libmemcached.tar.gz 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 export LIBMEMCACHED=$(pwd)/vendor
cd ..
fi fi
# if Django, append settings # if Django, append settings
if [ "$NAME" = "Python/Django" ]; then if [ "$NAME" = "Python/Django" ]; then
echo "-----> Django settings injection" echo "-----> Django settings injection"
......
...@@ -16,8 +16,8 @@ EOF ...@@ -16,8 +16,8 @@ EOF
if grep -Fxq "pylibmc" $BUILD_DIR/requirements.txt if grep -Fxq "pylibmc" $BUILD_DIR/requirements.txt
then then
cat <<EOF cat <<EOF
LIBRARY_PATH: ./vendor/lib LIBRARY_PATH: .heroku/vendor/lib
LD_LIBRARY_PATH: ./vendor/lib LD_LIBRARY_PATH: .heroku/vendor/lib
EOF EOF
fi 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