gnu: python: Add 'python' variables for different major/minor versions.
* gnu/packages/python.scm (python-2): Rename variable to... (python-2.7): ...this. (python-2): Refer to "python-2.7". (python): Rename variable to... (python-3.4): ...this. (python-3): Refer to "python-3.4". (python): Refer to "python-3". Signed-off-by: Ludovic Courtès <ludo@gnu.org>master
parent
39b3033731
commit
458480235b
|
@ -90,7 +90,7 @@
|
||||||
#:use-module (guix build-system trivial)
|
#:use-module (guix build-system trivial)
|
||||||
#:use-module (srfi srfi-1))
|
#:use-module (srfi srfi-1))
|
||||||
|
|
||||||
(define-public python-2
|
(define-public python-2.7
|
||||||
(package
|
(package
|
||||||
(name "python")
|
(name "python")
|
||||||
(version "2.7.10")
|
(version "2.7.10")
|
||||||
|
@ -262,7 +262,10 @@ packages; exception-based error handling; and very high level dynamic
|
||||||
data types.")
|
data types.")
|
||||||
(license psfl)))
|
(license psfl)))
|
||||||
|
|
||||||
(define-public python
|
;; Current 2.x version.
|
||||||
|
(define-public python-2 python-2.7)
|
||||||
|
|
||||||
|
(define-public python-3.4
|
||||||
(package (inherit python-2)
|
(package (inherit python-2)
|
||||||
(version "3.4.3")
|
(version "3.4.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
|
@ -288,6 +291,12 @@ data types.")
|
||||||
(version-major+minor version)
|
(version-major+minor version)
|
||||||
"/site-packages"))))))))
|
"/site-packages"))))))))
|
||||||
|
|
||||||
|
;; Current 3.x version.
|
||||||
|
(define-public python-3 python-3.4)
|
||||||
|
|
||||||
|
;; Current major version.
|
||||||
|
(define-public python python-3)
|
||||||
|
|
||||||
;; Minimal variants of Python, mostly used to break the cycle between Tk and
|
;; Minimal variants of Python, mostly used to break the cycle between Tk and
|
||||||
;; Python (Tk -> libxcb -> Python.)
|
;; Python (Tk -> libxcb -> Python.)
|
||||||
|
|
||||||
|
|
Reference in New Issue