有没有像“点子束"一样的替代品? [英] Is there a decent alternative to "pip bundle"?
问题描述
我在生产系统中使用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. ##
## ##
###############################################
我的服务器会自动扩展并自动扩展自身,但是之前依靠PyPi的使用使我很头疼.相反,我使用pip bundle
并将.pybundle文件提交到源git repo.这意味着我只需要依靠一个来源来构建服务器.
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.
pip bundle
消失了(谁知道什么时候),我需要使用另一种方法-是否有任何建议或类似的方法来打包依赖项以进行生产分配?
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?
谢谢!
推荐答案
使用新的 wheel格式; wheel
建立在pip
的基础上,将软件包打包为ZIP格式.
Use the new wheel format; wheel
builds on pip
to bundle packages into a ZIP format.
或者,您可以安装Egg代理;我们将 Buildout 与本地Egg代理一起使用,以管理开发和生产环境中的程序包依赖关系和版本控制.
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.
这篇关于有没有像“点子束"一样的替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!