Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.68 KB

README.md

File metadata and controls

34 lines (20 loc) · 1.68 KB

DEPRECATED

This buildpack is no longer maintained. The official Cloud Foundry Python buildpack includes conda package management as of v1.5.6

Python Conda Buildpack

The python-conda-buildpack is a Cloud Foundry buildpack which uses Continuum's conda for package management.

Usage

To use this buildpack specify the URI of the repository when pushing a Python web application to Cloud Foundry.

cf push -b https://github.com/ihuston/python-conda-buildpack.git

Python Dependencies

This buildpack uses conda environments to make it easy to replicate dependicies from a development environment. See the conda documentation for more details.

If you are using a conda environment locally you can export the packages currently installed into a file named environment.yml:

conda env export -f environment.yml

The name of the environment is not important and will be overridden during installation.

Alternatively if an environment.yml file is not present, the buildpack supports dependencies declaration using a requirements.txt file for pip packages and a conda_requirements.txt file for conda packages.

These files should be located in the root of the directory being pushed to Cloud Foundry. The buildpack will first use conda to install those requirements, then use pip.

License

This buildpack is released under version 2.0 of the Apache License.