From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Trying to fix an error in the pypi-importer Date: Thu, 31 Dec 2015 13:22:25 +0200 Message-ID: <20151231132225.7737cf68@debian-netbook> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/U_wEo9nd9jcKCFr54yHVc+I"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEbJW-0004Wn-AU for guix-devel@gnu.org; Thu, 31 Dec 2015 06:22:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEbJT-00051j-3e for guix-devel@gnu.org; Thu, 31 Dec 2015 06:22:38 -0500 Received: from flashner.co.il ([178.62.234.194]:33142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEbJS-00051d-Py for guix-devel@gnu.org; Thu, 31 Dec 2015 06:22:35 -0500 In-Reply-To: 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: swedebugia@riseup.net Cc: guix-devel --Sig_/U_wEo9nd9jcKCFr54yHVc+I Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 30 Dec 2015 20:53:47 +0100 swedebugia@riseup.net wrote: > Hi :) >=20 > I am trying to fix this error in the pypi-importer: >=20 > ~/src/guix$ ./pre-inst-env guix lint python-twisted > gnu/packages/python.scm:6628:0: python-twisted-15.5.0: all the source=20 > URIs are unreachable: > gnu/packages/python.scm:6628:0: python-twisted-15.5.0: URI=20 > https://pypi.python.org/packages/source/T/Twisted/Twisted-15.5.0.tar.gz=20 > not reachable: 404 ("Not Found") > [...] =20 > guix/build-system/python.scm: >=20 > (define (pypi-uri name version) > "Return a URI string for the Python package hosted on the Python=20 > Package > Index (PyPI) corresponding to NAME and VERSION." > (string-append "https://pypi.python.org/packages/source/" > (string-take name 1) "/" name "/" > name "-" version ".tar.gz")) >=20 > I read up on if-else with Guile and changed it to: > (define (pypi-uri name version ending) > "Return a URI string for the Python package hosted on the Python=20 > Package > Index (PyPI) corresponding to NAME and VERSION." > (if (zero? ending) > (string-append "https://pypi.python.org/packages/source/" > (string-take name 1) "/" name "/" > name "-" version ".tar.gz")) > (else > (string-append "https://pypi.python.org/packages/source/" > (string-take name 1) "/" name "/" > name "-" version "." ending ))) >=20 > Will this work? > I did a make and got: > GUILEC guix/build-system/python.go > guix/build-system/python.scm:51:2: warning: possibly unbound variable=20 > `else' > wrote `guix/build-system/python.go' >=20 > The goal was to change in a way that would not break all other calls to=20 > the procedure pypi-uri. >=20 > Any thoughts? >=20 > * see https://pypi.python.org/pypi/Twisted/json >=20 does this also take care of the ones that are stored as name "-" version ".= zip"? --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Sig_/U_wEo9nd9jcKCFr54yHVc+I Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWhQ/xAAoJEPTB05F+rO6ThPUP/1eRSVPzDV/q3xa8QIHBQQpw yE8DTXHeIwJ3mvqXpc1SjqRnrqg347WVBmpAyxJxLqJanZU03tjhkFV4VaRz9s34 u23Hx+K8klzbEwf/Iez/c2aDpV7UGVSbnrJzwAA0iCOvQYAxgRJvu541mfpTlcIm CqdWF/ZjN8fkVdygHYk2mGiM4y9+w/Z5YLbQdFdy0V1AuFSOuUxIxtLGDqDBi97N GVCDk+bENXrAWQr4KfT6yFSqYj2cCus6hbqEEdns51ktt1tQig2KQQDDC6RDc8b2 PpgjJ6JX3WRrR5jgwg45MhQzaVp1S/YAiWwac6mS+C0Bt6FwvWpWZ/8Vnulx55zD HQyAzk6NfeMyGE8Lib1TusMGpkd35Z7HxdwmQBwIli3ODIE3HsjByW5xcBcYvGY2 8L4E2/RjOiYLhoefpwp6hokMljuOl5bH1zgvE+k7wXhyKhrAufBainE343SyC7IJ zN9kj4Y9rxWo4Ese4Z5qXBWHMNI2HJIDzcqHP0jkBvv70znMErRUDiZhNQY+eHk4 HsS08rdY6/arUIuY6Kfw3jE3NwHvGj69qHzXq3iPxvef+7nl1uh33p+xQckA33tg JrLMbEi7Tpit3xUVZG3dun7q38MB2Q0WNN9hlgo4aSFy204OWpcqF2EnrCfTlBS3 UrUiATsC8fsOBWoFZ+At =AZvC -----END PGP SIGNATURE----- --Sig_/U_wEo9nd9jcKCFr54yHVc+I--