guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pypi URL change


From: Ben Woodcroft
Subject: Re: pypi URL change
Date: Tue, 26 Apr 2016 21:46:36 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0



On 25/04/16 17:54, Ludovic Courtès wrote:
Cyril Roelandt <address@hidden> skribis:

On 04/25/2016 01:21 AM, Ben Woodcroft wrote:
2) The new URLs are even uglier than the old one and a working pypi-uri
would hide them from our eyes.
Yeah but it is my understanding that the new pattern will only be
applied to new releases, so how will pypi-uri know what pattern to apply?
How about changing ‘pypi-uri’ to return two URIs, the new one and the
old one, in this order?

That way, attempts to download will first try the first URI, then the
second.

Alternately, we could define a “pypi” mirror in (guix download) that
would contain at least these two URIs, and have ‘pypi-uri’ return
“mirror://pypi/…”.  That only works if the two URIs share the same
suffix, though.

WDYT?

Hmm. It just dawned on me that it is impossible to implement the pypi-uri so that it returns the new format because the new URI is generated from the content of the package, not just the name and version. So I think we must either write the hash or the entire URL into the package, or grab the json from pypi each time we download.

ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]