gnu: python-numcodecs: Fix building on non x86 machines.
* gnu/packages/python-xyz.scm (python-numcodecs)[source]: Adjust snippet to prevent setup.py adding unsupported architecture specific CFLAGS.
This commit is contained in:
parent
420d51fa02
commit
68132407da
|
@ -25143,6 +25143,13 @@ (define-public python-numcodecs
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
|
;; Only add CFLAGS on architectures where they are supported
|
||||||
|
(substitute* "setup.py"
|
||||||
|
(("import sys")
|
||||||
|
"import sys\nimport platform")
|
||||||
|
(("os\\.name == 'posix'")
|
||||||
|
(string-append "os.name + platform.machine() == 'posixx86_64' or"
|
||||||
|
" os.name + platform.machine() == 'posixx86'")))
|
||||||
(delete-file-recursively "c-blosc")
|
(delete-file-recursively "c-blosc")
|
||||||
(for-each delete-file '("numcodecs/_shuffle.c"
|
(for-each delete-file '("numcodecs/_shuffle.c"
|
||||||
"numcodecs/blosc.c"
|
"numcodecs/blosc.c"
|
||||||
|
|
Loading…
Reference in a new issue