Dave Martorana Dave Martorana - 17 days ago 7
Python Question

Is there a decent alternative to "pip bundle"?

I use

pip bundle
for my production systems, and today I was greeted with the following disheartening message:

###############################################
## ##
## Due to lack of interest and maintenance, ##
## 'pip bundle' and support for installing ##
## from *.pybundle files is now deprecated, ##
## and will be removed in pip v1.5. ##
## ##
###############################################


My servers auto-scale and build themselves out automatically, but I've been burned before by relying on PyPi being available. Instead, I use
pip bundle
and commit the .pybundle file to the source git repo. This means I only need to rely on a single source for building my servers.

With
pip bundle
going away (and who knows when) I need an alternative method to use - are there any suggestions or similar methods of packaging up dependencies for production distribution?

Thanks!

Answer

Use the new wheel format; wheel builds on pip to bundle packages into a ZIP format.

Alternatively, you could install an egg proxy; we use Buildout together with a local egg proxy to manage package dependencies and versioning in development and production enviroments.

Comments