<div class="gmail_quote">On 25 July 2010 23:41, Armin Ronacher <span dir="ltr"><<a href="mailto:armin.ronacher@active-4.com">armin.ronacher@active-4.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I guess we can all agree on the fact that setuptools/distribute's way to find<br>
packages and package versions is an interesting but unreliable hack. However<br>
the problem here is that right now many people depend on setuptools and there is<br>
a problem in the combination of setuptools and PyPI and the best way to fix this<br>
is PyPI.<br>
<br></blockquote><div><br><br>Heh pip, distribute and setuptools *really* shouldn't be scraping pypi - at least except as a last resort. pypi has an xml-rpc (and a fledgling json api) which should be used in preference to scraping. This *already* causes problems for pypi maintenance.<br>
<br>Michael Foord<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
First the problem: setuptools knows the concept of encoding special versions of<br>
packages into URLs in package descriptions. Many people use that to refer to<br>
development versions. However if you do that, and the URL changes in a later<br>
version, on the simple index all links will still be present.<br>
<br>
In combination with setuptools/distribute's behaviour of using the last match,<br>
this means that you are unable to change the link unless you delete the old<br>
description as well.<br>
<br>
As a fix I would recommend just listing the latest links on the simple page or<br>
to reverse the order so that easy_install picks up the right one.<br>
<br>
Here is an example of such a problematic PyPI item:<br>
<br>
<a href="http://pypi.python.org/simple/Flask-Babel/" target="_blank">http://pypi.python.org/simple/Flask-Babel/</a><br>
<br>
Obviously, the link to mitsuhiko/flask-sqlalchemy is correct and<br>
USERNAME/REPOSITORY is wrong :)<br>
<br>
Is that something that could be changed in PyPI or would that go into a new<br>
version of setuptools/distribute? Right now it seems like the only solution is<br>
to either delete or edit old entries to fix the links.<br>
<br>
<br>
Regards,<br>
Armin<br>
<br>
<br>
_______________________________________________<br>
Catalog-SIG mailing list<br>
<a href="mailto:Catalog-SIG@python.org">Catalog-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/catalog-sig" target="_blank">http://mail.python.org/mailman/listinfo/catalog-sig</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.voidspace.org.uk">http://www.voidspace.org.uk</a><br><br><br>