about summary refs log tree commit diff
path: root/pkgs/development/python-modules/numpy
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-05-07 16:26:55 -0500
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-05-08 06:47:30 +0200
commit8bdb2a058ebd562924459b2164a4bd3abadf4816 (patch)
treea7bb2939be09bbf80ef71e0ead48a9f61a04ac81 /pkgs/development/python-modules/numpy
parentbc48203b98d48f89b04287d7310674c9cb2601be (diff)
numpy: set lapack, blas sections
When using netlib lapack/blas, the section name doesn’t match what
numpy expects. So we need to add extra sections for both so that the
right directory is found. The original “blas.implementation” section
may not actually be still required, but it is still a good idea so
that numpy know whether to apply any blas-implementation specific
quirks.

Fixes #86613
Diffstat (limited to 'pkgs/development/python-modules/numpy')
-rw-r--r--pkgs/development/python-modules/numpy/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix
index 0838509a84947..29f01387dd221 100644
--- a/pkgs/development/python-modules/numpy/default.nix
+++ b/pkgs/development/python-modules/numpy/default.nix
@@ -23,6 +23,14 @@ let
         library_dirs = "${blas}/lib:${lapack}/lib";
         libraries = "lapack,lapacke,blas,cblas";
       };
+      lapack = {
+        include_dirs = "${lib.getDev lapack}/include";
+        library_dirs = "${lapack}/lib";
+      };
+      blas = {
+        include_dirs = "${lib.getDev blas}/include";
+        library_dirs = "${blas}/lib";
+      };
     });
   };
 in buildPythonPackage rec {