A Cloud Foundry buildpack for Python based apps.
This is based on the [Heroku buildpack] (https://github.com/heroku/heroku-buildpack-python).
Additional information can be found at CloudFoundry.org.
This buildpack will be used if there is a requirements.txt
or setup.py
file in the root directory of your project.
cf push my_app -b https://github.com/cloudfoundry/buildpack-python.git
To use this buildpack on Cloud Foundry, where the Cloud Foundry instance limits some or all internet activity, please read the Disconnected Environments documentation.
As stated in the Disconnected Environments documentation, your application must 'vendor' it's dependencies.
For the Python buildpack, use pip
:
cd <your app dir>
mkdir -p vendor
# vendors all the pip *.tar.gz into vendor/
pip install --download vendor -r requirements.txt
cf push
uploads your vendored dependencies. The buildpack will install them directly from the vendor/
.
See the Machete CF buildpack test framework for more information.
- Fork the project
- Submit a pull request
Open an issue on this project
The project backlog is on Pivotal Tracker