[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: gnu: python-matplotlib: Define 'python2-variant'.
From: |
Ludovic Courtès |
Subject: |
06/06: gnu: python-matplotlib: Define 'python2-variant'. |
Date: |
Sun, 07 Feb 2016 22:46:11 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 57b7b8cd60425c4c718cb3082cdd745e014ee723
Author: Ludovic Courtès <address@hidden>
Date: Sun Feb 7 23:01:40 2016 +0100
gnu: python-matplotlib: Define 'python2-variant'.
* gnu/packages/python.scm (python2-numpy): Take the result of
'package-with-python2' directly.
(python2-scipy): Likewise.
(python-matplotlib)[properties]: New field.
(python2-matplotlib): Call 'strip-python2-variant'.
---
gnu/packages/python.scm | 26 +++++++-------------------
1 files changed, 7 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 702a333..c01ae09 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3115,13 +3115,7 @@ association studies (GWAS) on extremely large data
sets.")
,phases)))))))
(define-public python2-numpy
- (let ((numpy (package-with-python2 python-numpy)))
- (package (inherit numpy)
- ;; Make sure we use exactly PYTHON2-MATPLOTLIB, which is customized for
- ;; Python 2.
- (inputs `(("python2-matplotlib" ,python2-matplotlib)
- ,@(alist-delete "python-matplotlib"
- (package-inputs numpy)))))))
+ (package-with-python2 python-numpy))
(define-public python-pyparsing
(package
@@ -3321,7 +3315,7 @@ transcendental functions).")
(lambda (port)
(format port "[directories]~%
basedirlist = ~a,~a~%
-[rc_options]~%
+ [rc_options]~%
backend = TkAgg~%"
(assoc-ref inputs "tcl")
(assoc-ref inputs "tk"))))))
@@ -3368,10 +3362,12 @@ quality figures in a variety of hardcopy formats and
interactive environments
across platforms. Matplotlib can be used in Python scripts, the python and
ipython shell, web application servers, and six graphical user interface
toolkits.")
- (license psfl)))
+ (license psfl)
+ (properties `((python2-variant . ,(delay python2-matplotlib))))))
(define-public python2-matplotlib
- (let ((matplotlib (package-with-python2 python-matplotlib)))
+ (let ((matplotlib (package-with-python2
+ (strip-python2-variant python-matplotlib))))
(package (inherit matplotlib)
;; Make sure to use special packages for Python 2 instead
;; of those automatically rewritten by package-with-python2.
@@ -3547,15 +3543,7 @@ routines such as routines for numerical integration and
optimization.")
(license bsd-3)))
(define-public python2-scipy
- (let ((scipy (package-with-python2 python-scipy)))
- (package (inherit scipy)
- ;; Use packages customized for python-2.
- (propagated-inputs
- `(("python2-matplotlib" ,python2-matplotlib)
- ("python2-numpy" ,python2-numpy)
- ,@(alist-delete "python-matplotlib"
- (alist-delete "python-numpy"
- (package-propagated-inputs scipy))))))))
+ (package-with-python2 python-scipy))
(define-public python-sqlalchemy
(package
- branch master updated (17d2e86 -> 57b7b8c), Ludovic Courtès, 2016/02/07
- 01/06: gnu: upower: Install man pages., Ludovic Courtès, 2016/02/07
- 04/06: gnu: python-pycairo: Define 'python2-variant'., Ludovic Courtès, 2016/02/07
- 02/06: build-system/python: Honor the 'python2-variant' property of packages., Ludovic Courtès, 2016/02/07
- 05/06: gnu: python-cython: Define 'python2-variant'., Ludovic Courtès, 2016/02/07
- 03/06: gnu: python-pygobject: Define 'python2-variant'., Ludovic Courtès, 2016/02/07
- 06/06: gnu: python-matplotlib: Define 'python2-variant'.,
Ludovic Courtès <=