Replace translate_dependency_url with download_dependency · Putter/python-buildpack@978682c · GitHub
Skip to content

Commit 978682c

Browse files
sesmith177RochesterinNYC
authored andcommitted
Replace translate_dependency_url with download_dependency
- Necessary for python, libmemcached and libffi [#128099189] Signed-off-by: James Wen <jrw2175@columbia.edu>
1 parent ff7571e commit 978682c

3 files changed

Lines changed: 20 additions & 12 deletions

File tree

bin/steps/cryptography

Lines changed: 7 additions & 5 deletions

bin/steps/pylibmc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ if (pip-grep -s requirements.txt pylibmc &> /dev/null) then
2222
echo "-----> Noticed pylibmc. Bootstrapping libmemcached."
2323
mkdir -p .heroku/vendor
2424

25-
translated_url=`translate_dependency_url $VENDORED_MEMCACHED`
26-
filtered_url=`filter_dependency_url $translated_url`
2725
# Download and extract libmemcached into target vendor directory.
26+
exit_code=0
27+
filtered_url=$($ROOT_DIR/compile-extensions/bin/download_dependency $VENDORED_MEMCACHED /tmp)
2828
echo "Downloaded [$filtered_url]"
29-
curl $translated_url -s | tar zxv -C .heroku/vendor &> /dev/null
29+
30+
downloaded_file=/tmp/libmemcache.tar.gz
31+
tar zxvf $downloaded_file -C .heroku/vendor &> /dev/null
32+
rm $downloaded_file
3033
fi
3134

3235
export LIBMEMCACHED=$(pwd)/vendor

bin/steps/python

Lines changed: 7 additions & 4 deletions

0 commit comments

Comments
 (0)