mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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.
This commit is contained in:
parent
6754032f0c
commit
f18f8b7383
1 changed files with 5 additions and 1 deletions
|
@ -2357,7 +2357,11 @@ (define-public python-scipy
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue