当 Codespeak.net 关闭时安装 lxml

发布于 2024-09-15 19:08:52 字数 548 浏览 8 评论 0原文

Codespeak.net向下以及一些东西,在我的构建中的某个地方想要easy_install < a href="http://webcache.googleusercontent.com/search?q=cache:hZfwWz3fA_AJ:codespeak.net/lxml/+lxml" rel="nofollow noreferrer">lxml 来自它,尽管我用pip,已安装它并将其从我的构建文件中删除。

我还能怎样解决这个问题?

Codespeak.net is down and something, somewhere in my buildout wants to easy_install lxml from it, despite me boopstrapping with pip, having it installed already and removing it from my buildout files.

How else can I get round this?

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

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

发布评论

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

评论(2

℉服软 2024-09-22 19:08:52

第一种方法是查看您的构建目录:其中可能有一个 Egg/ 子目录。将现有的 lxml Egg 放入该目录中,构建应该会拾取它。

第二种稍微更持久的方法是告诉构建使用缓存目录。在您的主目录中,创建一个“.buildout”目录,其中包含“default.cfg”:

[buildout]
eggs-directory = /home/reinout/.buildout/eggs
download-cache = /home/reinout/.buildout/downloads
extends-cache = /home/reinout/.buildout/configs

同时创建这些 Eggs/downloads/configs 子目录。现在,您可以将现有的 lxml Egg 放入 Eggs/ 目录中,并且 buildout 应该将其拾取。

A first way is to look at your buildout directory: you probably have an eggs/ subdirectory in there. Put your existing lxml egg in that directory and buildout should pick it up.

A second, slightly more permanent, way is to tell buildout to use a cache directory. In your home dir, make a ".buildout" directory with a "default.cfg" in it:

[buildout]
eggs-directory = /home/reinout/.buildout/eggs
download-cache = /home/reinout/.buildout/downloads
extends-cache = /home/reinout/.buildout/configs

Also create those eggs/downloads/configs subdirectories. Now you can place your existing lxml egg in that eggs/ directory and buildout should pick it up.

看透却不说透 2024-09-22 19:08:52

感谢赖因特的帮助。我已按照您的建议更改了 .buildout 以使用下载缓存。问题是我当前的非常新的开发系统上没有那个鸡蛋:(

我的解决方法如下:

  • 我从 http://pypi.python.org/simple/lxml/
  • 从我的构建中删除了对 lxml 的所有引用。
  • 在我的目标克隆中创建了 python2.4 的虚拟环境目录
  • 更改为解压的 lxml 文件,
  • 使用 virtual-env 提供的 python 从解压的文件中安装:
    例如。 ~/instances/[my_instance]/bin/python setup.py install
  • 然后改回我的实例目录并完成构建。

到目前为止,我已经启动并运行,但希望 codespeak 能尽快回来,这样我就可以得到鸡蛋并按照您的建议进行缓存操作。

Thanks for the help Reinout. I have changed my .buildout to use the download cache as you suggested. Problem was that I did not have that egg on my current, very new, dev system :(

My work around looks like this:

  • I downloaded the tar from http://pypi.python.org/simple/lxml/.
  • Removed all references to lxml from my buildout.
  • Did a virtual-env of python2.4 in my target plone directory.
  • Did a bootstrap.
  • Changed dir to the untarred lxml files.
  • Used the python that virtual-env gave me to install from the untarred files:
    eg. ~/instances/[my_instance]/bin/python setup.py install
  • Then changed back to my instance dir and completed the buildout.

So far I am up and running, but hoping codespeak will come back soon so I can get the egg and do the caching thing like you suggested.

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