Mridhul Pax
Mridhul Pax

Reputation: 39

cloudfoundry package dependencies in python buildpack

I'm trying to package a couple of dependencies which I need for running my python app. I have it already on my requirements.txt of my application. But dependencies like, Cassandra-driver is taking too much time to install every time I redeploy my app.

How can I package my python modules in the buildpack so that It won't install it every time I redeploy my app?

Upvotes: 1

Views: 1255

Answers (2)

Sygyzmundovych
Sygyzmundovych

Reputation: 113

I was looking for the same and found in the documentation: https://docs.cloudfoundry.org/buildpacks/python/index.html#vendoring

Regards.

Upvotes: 0

Mridhul Pax
Mridhul Pax

Reputation: 39

Thanks Daniel

It worked! Here is what I need, maybe it will help someone.

$ cd yourproject
$ mkdir vendor
$ pip install -d vendor -r requirements.txt
$ cf push 

Upvotes: 1

Related Questions