feat: allow stack url overrides using BUILDPACK_VENDOR_URL env var (#643)

This is useful if you'd like to customize python binaries without forking the entire buildpack.

Similar functionality was implemented in https://github.com/heroku/heroku-buildpack-ruby/pull/238
This commit is contained in:
Jose Diaz-Gonzalez
2018-03-02 07:15:23 -05:00
committed by Kenneth Reitz
parent 9468ec2630
commit e15f68944a
6 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ if [[ "$STACK" == "heroku-16" ]]; then
fi
# The location of the pre-compiled libffi binary.
VENDORED_LIBFFI="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/libffi.tar.gz"
VENDORED_LIBFFI="${VENDOR_URL}/libraries/vendor/libffi.tar.gz"
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH"