PROBLEM
You want to write your app in Python but are unsure how it will be handled by Predix and Cloud Foundry buildpacks or you want to specify a different buildpack than what is discovered from your application source code.
STEPS
(1) You can view the available buildpacks with cf buildpacks.
You will see output such as the name and version of the buildpacks pre-installed on the platform:
python_buildpack 5 true false python_buildpack-cached-v1.5.9.zip ... python_minconda_buildpack 17 false false python_minconda_buildpack.zip
(2) Specify the buildpack you want either on the command line when you push or specify it in your manifest. It can either be the name of the buildpack pre-installed or you can get the latest directly from Github
Examples
Get version that is pre-installed in Predix (1.5.9)
cf push -b python_buildpack
Get the latest release directly from Github (1.5.20)
cf push -b https://github.com/cloudfoundry/python-buildpack.git#v1.5.20
Specify it in your manifest:
---
applications:
- name: latest-buildpack-demo
buildpack: https://github.com/cloudfoundry/buildpack-python.git#v1.5.20
If you are trying to use a different version of Python, see How-To: Specify a Python Version.
DEPENDENCIES
Cloud Foundry CLI
You can also optionally use the Predix CLI.
RESOURCES
Github Repository for Python Buildpack
https://github.com/cloudfoundry/python-buildpack
Cloud Foundry Documentation on Python Buildpack
http://docs.cloudfoundry.org/buildpacks/python/
cloud-foundry-cli