diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-04-22 12:38:28 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-04-22 12:38:28 -0500 |
commit | 3d18975478e4f2cc9bd92fd44b7e9d8c331fcec1 (patch) | |
tree | 0361f8bc1557a64f0c2f30395723a969510e67f5 /pkgs/development/python-modules/scipy | |
parent | 5a500ff0babbb1c5adf58389a774b28b97da7459 (diff) |
python.pkgs.scipy: set SCIPY_USE_G77_ABI_WRAPPER=1
To avoid segmentation fault on MKL, we need to use the CBLAS ABI. Normally, scipy will autodetect this, but here we don’t link using the ‘libmkl_rt.so’ name. So we need to manually set this. See https://github.com/scipy/scipy/blob/50012918db47f0ec3418dd53f0277daa589f82e3/doc/source/building/linux.rst#fortran-abi-mismatch
Diffstat (limited to 'pkgs/development/python-modules/scipy')
-rw-r--r-- | pkgs/development/python-modules/scipy/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index a9947e7e689f0..ace6c248ab2cf 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -53,6 +53,8 @@ in buildPythonPackage rec { setupPyBuildFlags = [ "--fcompiler='gnu95'" ]; + SCIPY_USE_G77_ABI_WRAPPER = 1; + meta = { description = "SciPy (pronounced 'Sigh Pie') is open-source software for mathematics, science, and engineering. "; homepage = "https://www.scipy.org/"; |