如何禁止 easy_install 压缩 Egg?

发布于 2024-07-30 02:43:41 字数 201 浏览 7 评论 0原文

我必须在 distutils.cfg 中添加什么内容才能防止 easy_install 安装压缩的 Egg? 压缩是一个很好的想法,但我喜欢能够 grep 并调试该代码。

我使用 python setup.pydevelop 引入了一些依赖项。仔细观察发现,它也接受 --always-unzip 标志。 如果将其设置为默认值就好了。

What must I put into distutils.cfg to prevent easy_install from ever installing a zipped egg? The compression is a nice thought, but I like to be able to grep through and debug that code.

I pulled in some dependencies with python setup.py develop . A closer look reveals that also accepts the --always-unzip flag. It would just be nice to set that as default.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

感情洁癖 2024-08-06 02:43:41

一种解决方案?

easy_install pip
rm easy_install
ln -s easy_install pip

One solution?

easy_install pip
rm easy_install
ln -s easy_install pip
成熟稳重的好男人 2024-08-06 02:43:41

我在使用 buildout 时遇到了问题,并通过

[buildout]
unzip = true

buildout.cfg 文件中添加以下内容解决了该问题:

I had the issue using buildout, and the solved it by adding:

[buildout]
unzip = true

in the buildout.cfg file

梦与时光遇 2024-08-06 02:43:41

该选项是 zip-ok,因此请将以下内容放入您的 distutils.cfg 中:

[easy_install]

# i don't like having zipped files.
zip_ok = 0

the option is zip-ok, so put the following in your distutils.cfg:

[easy_install]

# i don't like having zipped files.
zip_ok = 0
清秋悲枫 2024-08-06 02:43:41

我怀疑 distutils.cfg 中是否有为此设置,因为 easy_install 不是 distutils 的一部分。 但是像这样运行 easy_install :

easy_install --always-unzip

它应该可以解决问题。

I doubt there is a setting in distutils.cfg for this, as easy_install is not a part of distutils. But run easy_install like this:

easy_install --always-unzip

and it should solve the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文