pypi关闭时如何使用easy_install和buildout? [英] How do I use easy_install and buildout when pypi is down?

查看:99
本文介绍了pypi关闭时如何使用easy_install和buildout?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 buildout 自动下载并设置我的Plone安装的许多依赖项. buildout或多或少使用easy_install来下载和安装一堆Python鸡蛋.这通常可以正常工作,但是如果无法下载任何依赖项,或者如果我想通过扩展查找不适合pypi的内部程序包,则无法正常工作.如何设置自己的pypi本地版本以自动镜像所需的软件包?对于使用pypi作为元数据但不使用代码的软件包,它仍然依赖第三方服务器吗?

I am using buildout to automatically download and setup the many dependencies of my Plone installation. buildout more or less uses easy_install to download and install a bunch of Python eggs. This usually works, but it doesn't work if any of the dependencies cannot be downloaded or if I want buildout to find an internal package not appropriate for pypi. How can I set up my own local version of pypi to automatically mirror the packages I need? Will it still depend on third-party servers for packages that use pypi for their metadata but not their code?

推荐答案

以下是此处.那里似乎也有越来越多的镜子.

Here are instructions on how to setup your own PyPi mirror. The homepage of this project is here. There also seems to be a growing number of mirrors out there.

有关如何设置自己的软件包索引的说明,请查看此博客文章,其中最后说明解决方案.然后,您也可以在其中托管自己的内部软件包.优点还在于以这种方式固定了版本. (有关将版本直接固定在构建中的方法,请查看此帖子).

For instructions on how to setup your own package index, check out this blog post where one solution is explained at the end. Then you can also host your own internal packages in there. The advantage is also that the versions are fixed that way. (For a way to pin the versions directly in buildout, check out this post).

如果PyPI上只有元数据并且存档存储在其他位置,那么您当然也可以将其复制到索引中.如果您仅使用PyPI镜像,则假定您仍然需要访问这些服务器.

If there is only metadata on PyPI and the archive is stored somewhere else you might of course copy that over to your index as well. If you just use a PyPI mirror I assume that you still need access to these servers.

这篇关于pypi关闭时如何使用easy_install和buildout?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆