Search code examples
pythonlxmleasy-installbuildout

Installing lxml when Codespeak.net is down


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?


Solution

  • 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.