mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 03:15:09 -05:00
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:
parent
3b1a12c5bf
commit
aad93806ac
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue