full.html is blank

Bug #688778 reported by Randy Syring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyPI Mirror
New
Undecided
Unassigned

Bug Description

full.html has no output. I made a HG clone of this project and moded the mirror so that it outputs all package files in way that is suitable for easy_install's find_links option. The changeset is here:

https://bitbucket.org/rsyring/z3c.pypimirror/changeset/35c67310f638

Sorry for all the whitespace static in that commit. My comment from that commit follows:

-----------------

make full.html an index of all files for all packages

Not sure what it was supposed to do, but it wasn't outputting anything. Now it is an page that lists all files and is compatible with the --find-links option of easy_install.

This was necessary b/c I wanted to be able to have a local mirror of commonly used packages and then have easy_install and pip use pypi.python.org as a fall-back. This was accomplished for pip by specifying the following environment variables (command line equivalents exist):

PIP_INDEX_URL = http://pypi.localnet.com/
PIP_EXTRA_INDEX_URL = http://pypi.python.org/

Unfortunately, easy_install didn't seem to have a way to specify multiple indexes in the configuration files. find_links was an option, but it needs the name of the file, not the package, so the current index.html file would not work. Since easy_install gives preference to the find_links option, the following settings in a distutils config file will give the local-first-then-pypi functionality:

[easy_install]
find_links = http://pypi.localnet.com/full.html

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.