From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: [PATCH] gnu: Add python2-rpython. Date: Sat, 29 Oct 2016 23:54:19 +0800 Message-ID: <87mvhnjglw.fsf@gmail.com> References: <87vawb1jjy.fsf@gmail.com> <7edb2ecc-3736-5cb3-52c1-9523d3dd18b0@crazy-compilers.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0Vxy-0006NS-01 for guix-devel@gnu.org; Sat, 29 Oct 2016 11:54:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0Vxu-0005oB-5I for guix-devel@gnu.org; Sat, 29 Oct 2016 11:54:42 -0400 Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:33361) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c0Vxt-0005nj-Us for guix-devel@gnu.org; Sat, 29 Oct 2016 11:54:38 -0400 Received: by mail-pf0-x22c.google.com with SMTP id 197so53441792pfu.0 for ; Sat, 29 Oct 2016 08:54:37 -0700 (PDT) In-Reply-To: <7edb2ecc-3736-5cb3-52c1-9523d3dd18b0@crazy-compilers.com> (Hartmut Goebel's message of "Sat, 29 Oct 2016 16:10:50 +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: Hartmut Goebel Cc: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hartmut Goebel writes: > Am 29.10.2016 um 13:28 schrieb Alex Vong: >> + (uri (string-append >> + "https://pypi.python.org/packages/00/2e/" >> + "69319934a6049b368c05845eaab100ecea2213a96e59fb14416a0a6c5648/" >> + "rpython-" >> + version >> + ".tar.gz")) > > Please try to use "pypi-url" here like. > >> + (propagated-inputs >> + `(("python2-setuptools" ,python2-setuptools))) > > Please add a comment why does this have to be propagated. Thanks for catching these. I am using the template of guix-import without paying too much attention. Here is the new patch: --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-python2-rpython.patch Content-Transfer-Encoding: quoted-printable From=20f4b6a48598f04fa73366bc98d966251bafddfb76 Mon Sep 17 00:00:00 2001 From: Alex Vong Date: Sat, 29 Oct 2016 18:10:00 +0800 Subject: [PATCH] gnu: Add python2-rpython. * gnu/packages/python.scm (python2-rpython): New variable. =2D-- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f7485ad..8d7b184 100644 =2D-- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -29,6 +29,7 @@ ;;; Copyright =C2=A9 2016 Marius Bakke ;;; Copyright =C2=A9 2016 Stefan Reichoer ;;; Copyright =C2=A9 2016 Dylan Jeffers +;;; Copyright =C2=A9 2016 Alex Vong ;;; ;;; This file is part of GNU Guix. ;;; @@ -3150,6 +3151,30 @@ writing C extensions for Python as easy as Python it= self.") (inputs `(("python-2" ,python-2))))) ; this is not automatically changed =20 +;;; The RPython toolchain currently does not support Python 3. +(define-public python2-rpython + (package + (name "python2-rpython") + (version "0.1.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rpython" version)) + (sha256 + (base32 + "07pps06fq4c4wmi5ii0sgh9zgwniz5y7frqhm28g3a154l163fxc")))) + (build-system python-build-system) + (arguments `(#:python ,python-2)) + (native-inputs + `(("python2-pytest" ,python2-pytest) ; needed for running tests + ("python2-setuptools" ,python2-setuptools))) + (home-page "https://rpython.readthedocs.org") + (synopsis "Framework for implementing interpreters and virtual machine= s") + (description "RPython is a translation and support framework for +producing implementations of dynamic languages, emphasizing a clean separa= tion +between language specification and implementation aspects.") + (license license:expat))) + ;; This version of numpy is missing the documentation and is only used to ;; build matplotlib which is required to build numpy's documentation. (define python-numpy-bootstrap =2D-=20 2.10.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYFMYrAAoJEMWKuHkX9RGusDAQALOe85fCItQ4/xySC1GjoDyQ XOjDY7IJhI8lAODwwiEphL/OpMTgPU4z57G8PEBiK0aUDOV3BnjxUl2E0srdcn4c aRQK4kCidoak3u22ETnekQFgXDlxDlkBYrH3qr+/VVf7/e3MBtHiaUpztkI8lz0o oEOKX8DvlJIbz/2SqUqMMBS9/3SwDfypqZDgk4nb28RNdO5EzTBm+1KenjxhfWuX qaladA+d87OSb4lWbxC0Uxa85PxHmPEKMW5pRt7CJ5rNkyPI9B+mBDXJDq3+GIs1 AVs+jJiRagLlIYxNn2D2BE2qr0OdN2ZuQ0+XEkXxNRrKlR57mNnr/9E/RnxvY052 lUjrMmKN298VFaNcH6UPZVKCjDOgscARysZ86A404WXW5Wi+eHRYehqgoUHydNBw mmqNFwxtCtfOjnqDYiXOKeoy6etvsJnqZE3Dp0hxPzfgAD1NtkkTOSrKyI19jjVQ sWlzAa12+FMPYOJIoQfaiqTNR9JfC+q701tApPEXM8xGo/5D2gy6Vozy2wJa032v gWUQszxUSxWRQpRVpBg9JAhJBdXstgju/4Tm3uGiNTTO+TfP5aVe77MHX/rVO9N7 1ds3HCYc9VPofxTgVU8kE2tOPkB3lbEzafMZ4ncAQJdiWc2jgv4/ag9Nn+x6P/hQ xjZiuSKIZdqacTZAfc28 =uJid -----END PGP SIGNATURE----- --==-=-=--