From 8bdb2a058ebd562924459b2164a4bd3abadf4816 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Thu, 7 May 2020 16:26:55 -0500 Subject: [PATCH] numpy: set lapack, blas sections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkgs/development/python-modules/numpy/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix index 0838509a8494..29f01387dd22 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 {