Re: [Distutils] The Simple API - What URLs are supported

2014-09-25 Thread Donald Stufft
Given limited feedback and none negative I’m going to move ahead with this. Thanks All! --- Donald Stufft PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA ___ Distutils-SIG maillist - Distutils-SIG@python.org

Re: [Distutils] The Simple API - What URLs are supported

2014-09-18 Thread holger krekel
On Wed, Sep 17, 2014 at 20:59 -0400, Donald Stufft wrote: Right now pip (and originally setuptools, which does it as well) will do this sort of dance when looking for things on the PyPI simple index. This isn't the actual code though: thing_to_install = foo==1.0 page = None

Re: [Distutils] The Simple API - What URLs are supported

2014-09-18 Thread Nick Coghlan
What about an approach where pip first tries the canonical name, and if that fails, tries the exact given name? Seems to me like that should handle legacy mirrors without the big download. Cheers, Nick. ___ Distutils-SIG maillist -

Re: [Distutils] The Simple API - What URLs are supported

2014-09-18 Thread Nick Coghlan
On 18 Sep 2014 17:48, Nick Coghlan ncogh...@gmail.com wrote: What about an approach where pip first tries the canonical name, and if that fails, tries the exact given name? And by canonical I mean normalised. Seems to me like that should handle legacy mirrors without the big download.

Re: [Distutils] The Simple API - What URLs are supported

2014-09-18 Thread Donald Stufft
On Sep 18, 2014, at 3:48 AM, Nick Coghlan ncogh...@gmail.com wrote: What about an approach where pip first tries the canonical name, and if that fails, tries the exact given name? Seems to me like that should handle legacy mirrors without the big download. Cheers, Nick. The exact

Re: [Distutils] The Simple API - What URLs are supported

2014-09-18 Thread holger krekel
On Thu, Sep 18, 2014 at 06:17 -0400, Donald Stufft wrote: On Sep 18, 2014, at 3:48 AM, Nick Coghlan ncogh...@gmail.com wrote: What about an approach where pip first tries the canonical name, and if that fails, tries the exact given name? Seems to me like that should handle legacy

Re: [Distutils] The Simple API - What URLs are supported

2014-09-18 Thread Donald Stufft
On Sep 18, 2014, at 3:27 AM, holger krekel hol...@merlinux.eu wrote: On Wed, Sep 17, 2014 at 20:59 -0400, Donald Stufft wrote: Right now pip (and originally setuptools, which does it as well) will do this sort of dance when looking for things on the PyPI simple index. This isn't the

Re: [Distutils] The Simple API - What URLs are supported

2014-09-18 Thread Donald Stufft
On Sep 18, 2014, at 6:22 AM, holger krekel hol...@merlinux.eu wrote: On Thu, Sep 18, 2014 at 06:17 -0400, Donald Stufft wrote: On Sep 18, 2014, at 3:48 AM, Nick Coghlan ncogh...@gmail.com wrote: What about an approach where pip first tries the canonical name, and if that fails, tries

[Distutils] The Simple API - What URLs are supported

2014-09-17 Thread Donald Stufft
Right now pip (and originally setuptools, which does it as well) will do this sort of dance when looking for things on the PyPI simple index. This isn't the actual code though: thing_to_install = foo==1.0 page = None if thing_to_install.contains(==): # First look at a versioned url