Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a decent alternative to "pip bundle"?

Tags:

python

pip

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!

like image 292
Dave Martorana Avatar asked Sep 19 '13 21:09

Dave Martorana


1 Answers

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.

like image 91
Martijn Pieters Avatar answered Sep 21 '22 17:09

Martijn Pieters