[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH]: fix scipy build
From: |
Ricardo Wurmus |
Subject: |
[PATCH]: fix scipy build |
Date: |
Fri, 20 Feb 2015 12:35:19 +0100 |
Hi Guix,
just like matplotlib also python-scipy needs to first install the UTF-8
locale before setting it. The attached patch is virtually identical to
the matplotlib patch[1].
~~ Ricardo
[1]: http://lists.gnu.org/archive/html/guix-devel/2015-02/msg00506.html
>From d6b6d8c52d71519385ca16e89f5140d2563041e8 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Fri, 20 Feb 2015 12:19:38 +0100
Subject: [PATCH] gnu: python-scipy: install UTF-8 locale.
* gnu/packages/python.scm (python-scipy): Install en_US.UTF-8 locale in
install-doc phase to avoid encoding error.
---
gnu/packages/python.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7dc7435..cb25419 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2357,7 +2357,11 @@ toolkits.")
(html (string-append doc "/html"))
(pyver ,(string-append "PYVER=")))
(with-directory-excursion "doc"
- ;; Without setting this variable we get an encoding error.
+ ;; Install and set UTF-8 locale to avoid an encoding error.
+ (setenv "LOCPATH" (getcwd))
+ (system* "localedef" "--no-archive"
+ "--prefix" (getcwd) "-i" "en_US"
+ "-f" "UTF-8" "./en_US.UTF-8")
(setenv "LANG" "en_US.UTF-8")
;; Fix generation of images for mathematical expressions.
(substitute* (find-files "source" "conf\\.py")
--
2.1.0
- [PATCH]: fix scipy build,
Ricardo Wurmus <=