How to use conda channels with Cloud Foundry
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor/noarch
LICENSE
README.md
environment.yml
manifest.yml
myapp.py

README.md

Vendoring Conda packages on Cloud Foundry

To include ("vendor") Conda packages when using the official Python Cloud Foundry buildpack, you can include the packages in your uploaded app, and set up a local conda channel to this directory.

In this repo I have included a simple conda package as a vendored dependency in the vendor/ directory.

In my environment.yml file I add a new conda channel which references the local path to this directory, at the time that Cloud Foundry installs the package, which is /tmp/app/vendor.

I also show how you can reference other conda channels such as conda-forge to get access to packages like prettytable.

To try this out with your preferred CF host, simply clone this repo, log in to CF, and cf push.

(My employer Pivotal runs a CF installation with a free trial.)