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.
1 files changed, 7 insertions(+), 0 deletions(-) M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +7 -0
@@ 25143,6 25143,13 @@ tool).") (modules '((guix build utils))) (snippet '(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") (for-each delete-file '("numcodecs/_shuffle.c" "numcodecs/blosc.c"