← Back to team overview

pypi-mirror team mailing list archive

[Bug 688778] [NEW] full.html is blank

 

Public bug reported:

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

** Affects: pypi-mirror
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of PyPI
Mirror, which is the registrant for PyPI Mirror.
https://bugs.launchpad.net/bugs/688778

Title:
  full.html is blank

Status in PyPI replication project:
  New

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





Follow ups

References