gpt4 book ai didi

python - 有 "pip bundle"的合适替代品吗?

转载 作者:太空狗 更新时间:2023-10-30 01:08:54 29 4
gpt4 key购买 nike

我将 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 消失(谁知道什么时候),我需要一种替代方法来使用 - 是否有任何建议或类似的方法来打包生产分发的依赖项?

谢谢!

最佳答案

使用新的 wheel format ; wheel 基于 pip 将包打包成 ZIP 格式。

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

关于python - 有 "pip bundle"的合适替代品吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18905314/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com