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.gitThe primary purpose of extending the heroku buildpack is to cache system dependencies for firewalled or other non-internet accessible environments. This is called 'offline' mode.
'offline' buildpacks can be used in any environment where you would prefer the dependencies to be cached instead of fetched from the internet.
The list of what is cached is maintained in bin/package.
Using cached system dependencies is accomplished by overriding curl during staging. See bin/compile
Offline mode expects each app to use pip to manage dependencies. Use pip install to vendor your dependencies into /vendor.
- Make sure you have fetched submodules
git submodule update --init- Build the buildpack
bin/package [ online | offline ]-
Use in Cloud Foundry
Upload the buildpack to your Cloud Foundry and optionally specify it by name
cf create-buildpack custom_python_buildpack python_buildpack-offline-custom.zip 1 cf push my_app -b custom_python_buildpack
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