From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: pypi URL change Date: Mon, 25 Apr 2016 09:54:39 +0200 Message-ID: <87y482azsw.fsf@gnu.org> References: <571C754A.1050506@gmail.com> <571D4811.4050300@gmail.com> <571D54EC.2030000@gmail.com> <571D612E.7000802@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aubLx-0002k4-Bh for guix-devel@gnu.org; Mon, 25 Apr 2016 03:54:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aubLu-0002BE-6L for guix-devel@gnu.org; Mon, 25 Apr 2016 03:54:45 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:50436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aubLu-0002BA-0u for guix-devel@gnu.org; Mon, 25 Apr 2016 03:54:42 -0400 In-Reply-To: <571D612E.7000802@gmail.com> (Cyril Roelandt's message of "Mon, 25 Apr 2016 02:13:34 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Cyril Roelandt Cc: guix-devel@gnu.org Cyril Roelandt 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= =20 >> 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 =E2=80=98pypi-uri=E2=80=99 to return two URIs, the new o= ne 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 =E2=80=9Cpypi=E2=80=9D mirror in (guix downl= oad) that would contain at least these two URIs, and have =E2=80=98pypi-uri=E2=80=99 = return =E2=80=9Cmirror://pypi/=E2=80=A6=E2=80=9D. That only works if the two URIs= share the same suffix, though. WDYT? Ludo=E2=80=99.