[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/08: gnu: python-numcodecs: Fix building on non x86 machines.
From: |
guix-commits |
Subject: |
07/08: gnu: python-numcodecs: Fix building on non x86 machines. |
Date: |
Fri, 8 Sep 2023 05:33:23 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 68132407da0105ea7598e903f54b5096792ca17c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Fri Sep 8 12:15:38 2023 +0300
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.
---
gnu/packages/python-xyz.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 32fa9500e9..408c370adf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -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"
- branch master updated (3eb77954f9 -> d4645d5d25), guix-commits, 2023/09/08
- 02/08: gnu: python-hacking: Update to 5.0.0., guix-commits, 2023/09/08
- 01/08: gnu: python-eventlet: Update to 0.33.3., guix-commits, 2023/09/08
- 03/08: gnu: Remove python-flake8-3.8., guix-commits, 2023/09/08
- 04/08: gnu: Remove python-pycodestyle-2.6., guix-commits, 2023/09/08
- 05/08: gnu: Remove python-pyflakes-2.2., guix-commits, 2023/09/08
- 07/08: gnu: python-numcodecs: Fix building on non x86 machines.,
guix-commits <=
- 08/08: gnu: python-fasteners: Update to 0.17.3., guix-commits, 2023/09/08
- 06/08: gnu: python-numcodecs: Remove another cythonized file., guix-commits, 2023/09/08