From f18754f8f0d2cb48050ea7bba0dc1f8592f447f6 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.com> Date: Fri, 1 Aug 2014 15:46:14 -0400 Subject: [PATCH] pylibmc attempt --- bin/steps/pylibmc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/steps/pylibmc b/bin/steps/pylibmc index 05a13618..a2ae9322 100755 --- a/bin/steps/pylibmc +++ b/bin/steps/pylibmc @@ -10,7 +10,7 @@ # This script is invoked by [`bin/compile`](/). # The location of the pre-compiled libmemcached binary. -VENDORED_MEMCACHED="http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz" +VENDORED_MEMCACHED="http://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/libmemcache.tar.gz" # Syntax sugar. source $BIN_DIR/utils @@ -19,20 +19,17 @@ bpwatch start pylibmc_install # If pylibmc exists within requirements, use vendored libmemcached. if (pip-grep -s requirements.txt pylibmc) then - echo "-----> Noticed pylibmc. Bootstrapping libmemcached." cd .heroku if [ -d "vendor/lib/sasl2" ]; then export LIBMEMCACHED=$(pwd)/vendor else + echo "-----> Noticed pylibmc. Bootstrapping libmemcached." # Download and extract libmemcached into target vendor directory. - curl -s -L -o tmp-libmemcached.tar.gz $VENDORED_MEMCACHED - tar -zxvf tmp-libmemcached.tar.gz > /dev/null - rm tmp-libmemcached.tar.gz + curl $VENDORED_MEMCACHED -s | tar zxv -C .heroku/vendor export LIBMEMCACHED=$(pwd)/vendor fi - export LIBMEMCACHED=$(pwd)/vendor cd .. fi -- GitLab