Deutsch Open-Source Weblog Resources zopyx group Imprint

Python, Zope, Plone — Development and Consulting

What can we do for you?

Your contact
Andreas Jung will assist you. Please call
+49(0)70 71/79 33 76

Or use our Callback service

Creating a local PyPI mirror

— abgelegt unter:

During the Blackforest Sprint a new package z3c.pypimirror has been created under the lead of Daniel Kraft. The major goal was to build up a distributed mirroring infrastructure. Why? PyPI is still a single point-of-failure and because there are a bunch of cases where you need an in-house mirror.

After  easy_install-ing  z3c.pypimrror you can use the pypimirror script for downlading all packages from PyPI (and as an option all external packages (experimental)). This requires roughly 4 GB of diskspace. After mirroring PyPI you can run a buildout against your local PyPI mirror. Right now I have full copy of PyPI available under http://pypi.zopyx.com. By default zc.buildout asks PyPI always when looking up a package. You can avoid that by the following configuration in your buildout.cfg:

[buildout]
find-links = http://pypi.zopyx.com
allow-hosts = *.zopyx.com

This configuration tells zc.buildout to also look for packages on my local server and to restrict any lookup to the hosts defined within the allow-hosts section - this works like a charm.

The local PyPI mirror also works nicely with easy_install:

easy_install -i pypi.zopyx.com <your package>

 

 

Artikelaktionen

Testimonial

The university of Bonn is currently migrating its central website and institute websites to Plone

Andreas Jung worked as a consultant for the University of Bonn during the conception phase and advised us competent and very efficient. He identified the requirements of the institutes and created a concept for building modular websites for institutes at the University of Bonn.

Martin Ragg, IT Project manager, University of Bonn

 
ZOPYX Ltd., Charlottenstr. 37/1, D-72070 Tübingen, Germany
Phone +49(0)70 71/79 33 76, Fax +49(0)70 71/7 93 68 40, Email: info@zopyx.com
Contact form Callback service Print page