mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
python312Packages.scipy: use numpy.coreIncludeDir (#340832)
This commit is contained in:
commit
a7e00d27ed
|
@ -3,6 +3,7 @@
|
|||
stdenv,
|
||||
fetchPypi,
|
||||
python,
|
||||
numpy_1,
|
||||
pythonAtLeast,
|
||||
pythonOlder,
|
||||
buildPythonPackage,
|
||||
|
@ -185,6 +186,7 @@ buildPythonPackage rec {
|
|||
blas = blas.provider;
|
||||
blasImplementation = blas.implementation;
|
||||
inherit cfg;
|
||||
coreIncludeDir = "${numpy_1}/${python.sitePackages}/numpy/core/include";
|
||||
tests = {
|
||||
inherit sage;
|
||||
};
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
stdenv,
|
||||
fetchPypi,
|
||||
python,
|
||||
numpy_2,
|
||||
pythonAtLeast,
|
||||
pythonOlder,
|
||||
buildPythonPackage,
|
||||
|
@ -166,6 +167,7 @@ buildPythonPackage rec {
|
|||
blas = blas.provider;
|
||||
blasImplementation = blas.implementation;
|
||||
inherit cfg;
|
||||
coreIncludeDir = "${numpy_2}/${python.sitePackages}/numpy/_core/include";
|
||||
tests = {
|
||||
inherit sage;
|
||||
};
|
||||
|
|
|
@ -65,7 +65,7 @@ let
|
|||
# Additional cross compilation related properties that scipy reads in scipy/meson.build
|
||||
crossFileScipy = writeText "cross-file-scipy.conf" ''
|
||||
[properties]
|
||||
numpy-include-dir = '${numpy}/${python.sitePackages}/numpy/core/include'
|
||||
numpy-include-dir = '${numpy.coreIncludeDir}'
|
||||
pythran-include-dir = '${pythran}/${python.sitePackages}/pythran'
|
||||
host-python-path = '${python.interpreter}'
|
||||
host-python-version = '${python.pythonVersion}'
|
||||
|
|
Loading…
Reference in a new issue