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
+6
View File
@@ -33,6 +33,12 @@ ENV_DIR=$3
export BUILD_DIR CACHE_DIR ENV_DIR
VENDOR_URL="https://lang-python.s3.amazonaws.com/$STACK"
if [[ -n ${BUILDPACK_VENDOR_URL:-} ]]; then
VENDOR_URL="$BUILDPACK_VENDOR_URL"
fi
export VENDOR_URL
# Python defaults
DEFAULT_PYTHON_VERSION="python-3.6.4"
LATEST_3="python-3.6.4"