aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-11-17 10:12:43 +0000
committerRicardo Wurmus <rekado@elephly.net>2021-11-17 11:00:02 +0000
commitaad93806ac26d53d301bcb9acfe45dc2aa01c355 (patch)
treeba240f21de8459171b1ab78efadd8ec54e53e0b1
parent3b1a12c5bff5a0c108284d19a6982bdf663bbceb (diff)
downloadguix-aad93806ac26d53d301bcb9acfe45dc2aa01c355.tar
guix-aad93806ac26d53d301bcb9acfe45dc2aa01c355.tar.gz
gnu: python-hnswlib: Disable native optimizations.
* gnu/packages/python-xyz.scm (python-hnswlib)[arguments]: Add build phase 'disable-native-optimization.
-rw-r--r--gnu/packages/python-xyz.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f32c322c0a..4623c7b3b2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1380,6 +1380,13 @@ concepts.")
(sha256
(base32 "0wf1cwmxmdzfqmfhrkqdxb5spf21ylgl2bidswhzjrqhwf35c9qf"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-native-optimization
+ (lambda _
+ (substitute* "setup.py"
+ ((", '-march=native'") "")))))))
(propagated-inputs
`(("python-numpy" ,python-numpy)))
(native-inputs