[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gnu: python: Variable names containing versions
From: |
Hartmut Goebel |
Subject: |
[PATCH] gnu: python: Variable names containing versions |
Date: |
Wed, 18 May 2016 19:01:39 +0200 |
Hi,
as discussed earlier on the mailinglist, here is a patch adding "versioned"
Python variables.
python -> python-3 -> python-3.4
python-2 -> python-2.7
This allows to still specify "current Python 3.4.x release" even after we
updated python-3 to python-3.5. python-2.7 is for symetry only, as there will
be no Python 2.8.
>From 793917a37a32d89d98da93a1315635d4506f40c1 Mon Sep 17 00:00:00 2001
From: Hartmut Goebel <address@hidden>
Date: Sun, 15 May 2016 11:51:54 +0200
Subject: [PATCH] gnu: python: Variable names containing 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".
---
gnu/packages/python.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7593fc7..08065ea 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -90,7 +90,7 @@
#:use-module (guix build-system trivial)
#:use-module (srfi srfi-1))
-(define-public python-2
+(define-public python-2.7
(package
(name "python")
(version "2.7.10")
@@ -262,7 +262,9 @@ packages; exception-based error handling; and very high
level dynamic
data types.")
(license psfl)))
-(define-public python
+(define-public python-2 python-2.7)
+
+(define-public python-3.4
(package (inherit python-2)
(version "3.4.3")
(source (origin
@@ -288,6 +290,12 @@ data types.")
(version-major+minor version)
"/site-packages"))))))))
+; our current Python 3 release is Python 3.4
+(define-public python-3 python-3.4)
+
+; our current default python is python 3
+(define-public python python-3)
+
;; Minimal variants of Python, mostly used to break the cycle between Tk and
;; Python (Tk -> libxcb -> Python.)
--
2.7.4
- [PATCH] gnu: python: Variable names containing versions,
Hartmut Goebel <=