有“pip bundle”的替代品吗?

时间:2013-09-19 21:36:01

标签: python pip

我将pip bundle用于我的制作系统,今天我受到以下令人沮丧的消息的欢迎:

###############################################
##                                           ##
##  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。这意味着我只需要依靠单一来源来构建我的服务器。

pip bundle消失(谁知道什么时候)我需要另一种方法来使用 - 是否有任何建议或类似的方法来打包生产分发的依赖关系?

谢谢!

2 个答案:

答案 0 :(得分:7)

使用新的wheel format; wheelpip为基础,将软件包捆绑为ZIP格式。

或者,你可以安装一个鸡蛋代理;我们将Buildout与本地egg代理一起使用来管理开发和生产环境中的包依赖关系和版本控制。

答案 1 :(得分:-2)

使用pip-bundle,它的功能大致相同:

而不是

pip bundle -q mybundle.pybundle -r python-requirements.pip
你写道:

pip-bundle create mybundle.pybundle -r python-requirements.pip
pip-bundle install mybundle.pybundle
相关问题