improving pypi / setuptools



Due to a recent site overhaul by sourceforge certain files linked to
from pypi won't install. For example, in trying to install all the
dependencies for the subway web framework, I got this kind of error:

<snip>
..
..
..
Searching for CherryPy>=2.1.0-rc1
Reading http://www.python.org/pypi/CherryPy/
Reading http://www.cherrypy.org
Reading http://sourceforge.net/project/showfiles.php?group_id=56099
Best match: CherryPy 2.1.0-rc2
Downloading
http://prdownloads.sourceforge.net/cherrypy/CherryPy-2.1.0-rc2.tar.g
z?download
error: Unexpected HTML page found at
http://prdownloads.sourceforge.net/cherrypy
/CherryPy-2.1.0-rc2.tar.gz?download

</snip>

Unless I am mistaken, this seems like a problem due to a dependency on
screen scraping to get the location of the file. If this is the case,
IMHO it is too fragile.

What ideas do people out there have for making the installation of
python module more reliable?

Just to get the ball rolling, here are two suggestions:

[1] If setuptools encounters an error in retrieving a dependency from
its registered location (off python.org), it falls back to a canonical
URL that serves it from pypi, an email is then dispatched to uploader /
module maintainer, etc...

So I when I register the location of my python module on pypi, I also
upload a copy to pypi. This can serve as a permanent repository for all
python modules and versions, but because it is only used as a fallback
server, bandwidth use and therefore cost will be manageable.

[2] Create an alia for easy_install.py : egg.py

This not really a reliability tweek, its just a memory tweek.

The advantage of this is to save the installer a few
keystrokes, and to relate the installation command
to that which is installed.

Furthermore, I won't be jealous of ruby's little "gem"
command anymore. (-;


AK

.



Relevant Pages

  • Re: bytecode non-backcompatibility
    ... Updating Python provides a good excuse ... > and install into the new site-package directory... ... PyPI is the wrong place to maintain a record of installed ... Neither distutils nor PyPI has a "download" functionality. ...
    (comp.lang.python)
  • PyPI Enhancements
    ... Is any work being done to add some CPAN-like or apt-like features to PyPI? ... a pypi directory inside the python directory tree, ... If these packages have unfulfilled dependencies, ... This would install dummy modules for all non-installed packages. ...
    (comp.lang.python)
  • Re: [Hplip-help] Problem in running HP 2840 on FC6 with hplip....Desperate!!
    ... Nowhere did I remove the previous install. ... > problem....output filtered to get keyword python from the log is attached. ... > Checking for dependency cups - Common Unix Printing System... ... is an OPTIONAL dependency. ...
    (Fedora)
  • Re: Evaulation kit installation error (0x80004005)
    ... Even though MS has removed MS Java download from www.microsoft.com a long while ago, it is still available on Internet. ... > "Fail to load missing dependency file"-kind of error. ... > Lars Ove ... >>> Did you install XPe PS1 Toolkit first? ...
    (microsoft.public.windowsxp.embedded)
  • Re: dependency hell
    ... packages causes real conflicts. ... possible to not install Open Office as well. ... can't be removed because of dependency hell. ... openSUSE callss a "pattern", then it assumes that all those programs ...
    (alt.os.linux.suse)