[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: Add python2-rpython.
From: |
Alex Vong |
Subject: |
Re: [PATCH] gnu: Add python2-rpython. |
Date: |
Sat, 29 Oct 2016 23:54:19 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hartmut Goebel <address@hidden> 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:
From f4b6a48598f04fa73366bc98d966251bafddfb76 Mon Sep 17 00:00:00 2001
From: Alex Vong <address@hidden>
Date: Sat, 29 Oct 2016 18:10:00 +0800
Subject: [PATCH] gnu: Add python2-rpython.
* gnu/packages/python.scm (python2-rpython): New variable.
---
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
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -29,6 +29,7 @@
;;; Copyright © 2016 Marius Bakke <address@hidden>
;;; Copyright © 2016 Stefan Reichoer <address@hidden>
;;; Copyright © 2016 Dylan Jeffers <address@hidden@openmailbox.org>
+;;; Copyright © 2016 Alex Vong <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3150,6 +3151,30 @@ writing C extensions for Python as easy as Python
itself.")
(inputs
`(("python-2" ,python-2))))) ; this is not automatically changed
+;;; 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 machines")
+ (description "RPython is a translation and support framework for
+producing implementations of dynamic languages, emphasizing a clean separation
+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
--
2.10.1
signature.asc
Description: PGP signature