guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: python-hnswlib: Disable native optimizations.


From: guix-commits
Subject: 03/03: gnu: python-hnswlib: Disable native optimizations.
Date: Wed, 17 Nov 2021 06:05:08 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit aad93806ac26d53d301bcb9acfe45dc2aa01c355
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Nov 17 10:12:43 2021 +0000

    gnu: python-hnswlib: Disable native optimizations.
    
    * gnu/packages/python-xyz.scm (python-hnswlib)[arguments]: Add build phase
    'disable-native-optimization.
---
 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 f32c322..4623c7b 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]