Is there a decent alternative to “pip bundle”?

2019-03-29 22:36发布

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!

标签: python pip
2条回答
老娘就宠你
2楼-- · 2019-03-29 22:54

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.

查看更多
可以哭但决不认输i
3楼-- · 2019-03-29 23:16

Use pip-bundle, it does pretty the same:

instead of

pip bundle -q mybundle.pybundle -r python-requirements.pip

you write:

pip-bundle create mybundle.pybundle -r python-requirements.pip
pip-bundle install mybundle.pybundle
查看更多
登录 后发表回答