pombreda / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
MIT License
0 stars 0 forks source link

Pinax setup.py data is wrong in PyPI, causing easy_install and pip problems #215

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. easy_install Pinax or pip install Pinax

What is the expected output? What do you see instead?

For easy_install you see:

No local packages or download links found for Pinax

For pip you see:

Downloading/unpacking Pinax
  Could not find any downloads that satisfy the requirement Pinax
No distributions at all found for Pinax

What version of the product are you using? On what operating system?

0.7.0alpha1

Please provide any additional information below.

This is similar to issue 207 but different.

For me, I have a dependency installer that wraps pip to make things easy. 
Other people will face similar problems, especially if they want to use
pip, easy_install, or zc.buildout, etc.

The problem is in setup.py ; there isn't any download URL for Pinax and the
URL in setup.py does not provide a direct page for packages to download. 
Also, there aren't any packages directly available on PyPI.

It can be fixed one of several ways.  The best way to fix it would be to
simply upload a package to PyPI which can be done using the current
setup.py file without modification, like this (just standard distutils
commands) :

$ python setup.py sdist register upload -s

Both easy_install and pip will then run python setup.py install on the
source package.  They also run egg_info but that is not too important and
doesn't require your setup.py file to use setuptools.

The other ways to fix it are more tricky.  What PyPI based tools do is they
will look for download_url= and use that if it is defined and if no
packages have been uploaded.  If that fails, it will scan the page in url=
and see if it can find any packages that look like pinax-N.N.tar.gz and
download those.  A quick fix would be to provide a link like "download
latest" on the home page instead of [or in addition to] the current link to
http://pinaxproject.com/download/

I am happy to help out with a patch for this.  Having trouble finding the
vcs repository though.

PS. Great talk at PyCon!  I'm looking forward to building apps with Pinax.

Original issue reported on code.google.com by kumar.mcmillan on 30 Mar 2009 at 4:34