gnu: python-hnswlib: Disable native optimizations.

* gnu/packages/python-xyz.scm (python-hnswlib)[arguments]: Add build phase
'disable-native-optimization.
This commit is contained in:
Ricardo Wurmus 2021-11-17 10:12:43 +00:00
parent 3b1a12c5bf
commit aad93806ac
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1380,6 +1380,13 @@ (define-public python-hnswlib
(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