• Home

last modified July 7, 2010 by ajung

Project Home | Mailing List | Contribute | Project Page  

 

z3c.pypimirror

­

Implementing and providing an infrastructure for PyPI mirrors

in order to provide a high-available platform

for Python projects depending on PyPI.

PyPI is the central Python package index.

 

Download

 

Public Mirrors

Currently, these are the public mirrors. Later there will be a single domain name which you can use, but for now, just choose the one you like most ;)

Usage

Buildout

[buildout]
# your settings...
index = http://your.mirror/   # look right for possible URLs
# your settings...

Catching errors:

  • If your buildout tells you something like
      Getting distribution for 'python-openid>=2.2.1,<2.3dev'.
    Error: Couldn't find a distribution for 'python-openid>=2.2.1,<2.3dev'.
    your buildout requested a package which either is not on pypi or which is only linked from pypi. The mirrors don't catch those packages for several reasons. But you can workaround by adding those download URLs to the find-links section of [buildout]:
    find-links =
        http://openidenabled.com/files/python-openid/packages
        # possibly other links...
    
    To find out those links, just visit http://pypi.python.org/  and search for the required package - in this case "python-openid". If you're lucky, there's a download- or homepage-URL shown. Just cut off the filename so you get a page from where the releases are only linked and provide this URL to find-links like above. If you're crazy enough you may also use pypi's url ;)
    For Plone, currently only the python-openid package (like above) is required [TODO: I tested this with 3.1.6. Is this really true for all 3.* versions?].

easy_install

# easy_install -i http://your.mirror/ some.package

Catching errors:

  • If easy_install tells you something like
    Searching for BeautifulSoup
    Reading http://your.mirror/BeautifulSoup/
    No local packages or download links found for BeautifulSoup
    error: Could not find suitable distribution for Requirement.parse('BeautifulSoup')
    

then you've hit a package which only provides  a link on pypi (or even nothing). We do not mirror those. Sorry. But you may add a find-links option to easy_install like this (to find out those links, just visit http://pypi.python.org/  and search for the required package - in this case "python-openid". If you're lucky, there's a download- or homepage-URL shown. Just cut off the filename so you get a page from where the releases are only linked and provide this URL to find-links like above. If you're crazy enough you may also use pypi's url ;)):

# easy_install -i http://your.mirror/ -f http://www.crummy.com/software/BeautifulSoup/download/ some.package

 

Project Leaders