[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: gnu: python2-matplotlib: Fix mpl_toolkits module.
From: |
guix-commits |
Subject: |
02/09: gnu: python2-matplotlib: Fix mpl_toolkits module. |
Date: |
Thu, 9 Dec 2021 05:20:13 -0500 (EST) |
rekado pushed a commit to branch core-updates-frozen
in repository guix.
commit 3cd37c94bd92091d72c7437e1b250417ce297a6f
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Dec 8 23:44:48 2021 +0100
gnu: python2-matplotlib: Fix mpl_toolkits module.
* gnu/packages/python-xyz.scm (python2-matplotlib)[arguments]: Add phase
'create-init-file; restore 'sanity-check phase.
---
gnu/packages/python-xyz.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e8e6cb2..96a77d8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6379,8 +6379,15 @@ toolkits.")
(invoke "unzip"
(assoc-ref inputs "jquery-ui")
"-d" dir))))
+ ;; Without this file mpl_toolkits cannot be imported.
+ (add-after 'install 'create-init-file
+ (lambda* (#:key outputs #:allow-other-keys)
+ (with-output-to-file
+ (string-append
+ (assoc-ref outputs "out")
+ "/lib/python2.7/site-packages/mpl_toolkits/__init__.py")
+ (lambda _ (display "")))))
(delete 'fix-and-disable-failing-tests)
- (delete 'sanity-check) ; This fails because mpl_toolkits is not
an actual module
(delete 'check))))) ; These tests weren't run the the past.
;; Make sure to use special packages for Python 2 instead
;; of those automatically rewritten by package-with-python2.
- branch core-updates-frozen updated (95a4965 -> ab445eb), guix-commits, 2021/12/09
- 08/09: gnu: seek: Update to 1-1.196ed4c., guix-commits, 2021/12/09
- 04/09: gnu: Add htslib-for-samtools-1.2., guix-commits, 2021/12/09
- 02/09: gnu: python2-matplotlib: Fix mpl_toolkits module.,
guix-commits <=
- 03/09: gnu: python2-scipy: Override native inputs., guix-commits, 2021/12/09
- 09/09: gnu: python2-scikit-learn: Disable one more test., guix-commits, 2021/12/09
- 01/09: gnu: Add gfortran-7., guix-commits, 2021/12/09
- 05/09: gnu: Add samtools-1.2., guix-commits, 2021/12/09
- 06/09: gnu: miso: Update to 0.5.4-1.b714021., guix-commits, 2021/12/09
- 07/09: gnu: libsvm: Install header and library., guix-commits, 2021/12/09