gnu: bitshuffle: Don't use '-march=native'.

* gnu/packages/compression.scm (bitshuffle)[arguments]: Add custom phase
to substitute out the '-march=native' compilation flag.
This commit is contained in:
Efraim Flashner 2018-11-11 08:56:49 +02:00
parent 01029e2043
commit 28b24e9975
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1210,7 +1210,14 @@ (define-public bitshuffle
#t))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; fail: https://github.com/h5py/h5py/issues/769
`(#:tests? #f ; fail: https://github.com/h5py/h5py/issues/769
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'dont-build-native
(lambda _
(substitute* "setup.py"
(("'-march=native', ") ""))
#t)))))
(inputs
`(("numpy" ,python-numpy)
("h5py" ,python-h5py)