11#! /usr/bin/env bash
22
3- # The Heroku Python Buildpack. This script accepts parameters for a build
3+ # The Cloud Foundry Python Buildpack. This script accepts parameters for a build
44# directory, a cache directory, and a directory for app environment variables.
55
6- # Warning: there are a few hacks in this script to accommodate excellent builds
7- # on Heroku. No guarantee for external compatibility is made. However,
8- # everything should work fine outside of the Heroku environment, if the
9- # environment is setup correctly.
10-
116# Usage:
127#
138# $ bin/compile <build-dir> <cache-dir> <env-path>
@@ -60,7 +55,6 @@ VIRTUALENV_LOC=".heroku/venv"
6055LEGACY_TRIGGER=" lib/python2.7"
6156
6257DEFAULT_PYTHON_VERSION=" python-$( $BUILDPACK_PATH /compile-extensions/bin/default_version_for $BUILDPACK_PATH /manifest.yml python) "
63- DEFAULT_PYTHON_STACK=" cedar-14"
6458PYTHON_EXE=" /app/.heroku/python/bin/python"
6559PIP_VERSION=" 8.1.2"
6660SETUPTOOLS_VERSION=" 25.2.0"
@@ -81,7 +75,6 @@ export PATH=$PATH:$ROOT_DIR/vendor/pip-pop
8175# Support Anvil Build_IDs
8276[ ! " $SLUG_ID " ] && SLUG_ID=" defaultslug"
8377[ ! " $REQUEST_ID " ] && REQUEST_ID=$SLUG_ID
84- [ ! " $STACK " ] && STACK=$DEFAULT_PYTHON_STACK
8578
8679# Sanitizing environment variables.
8780unset GIT_DIR PYTHONHOME PYTHONPATH
@@ -152,8 +145,8 @@ cd $BUILD_DIR
152145
153146# Warn for lack of Procfile.
154147if [[ ! -f Procfile ]]; then
155- puts-warn ' Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.'
156- puts-warn ' Learn more: https://devcenter.heroku.com/articles/ procfile'
148+ puts-warn ' Warning: Your application is missing a Procfile. This file tells Cloud Foundry how to run your application.'
149+ puts-warn ' Learn more: https://docs.cloudfoundry.org/buildpacks/prod-server.html# procfile'
157150fi
158151
159152# Experimental pre_compile hook.
0 commit comments