Reputation: 39
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
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
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