From 2ef137fd4aa2dc941301bc24ba77a14277179e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 24 Mar 2024 00:50:39 +0100 Subject: [PATCH] python311Packages.scipy: remove references to dev outputs --- pkgs/development/python-modules/scipy/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index 2870e5ec3bbd9a5..2a51825830049f7 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -10,6 +10,7 @@ , cython , gfortran , meson-python +, nukeReferences , pkg-config , pythran , wheel @@ -94,6 +95,7 @@ in buildPythonPackage { cython gfortran meson-python + nukeReferences pythran pkg-config wheel @@ -166,6 +168,12 @@ in buildPythonPackage { # hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; + # remove references to dev dependencies + postInstall = '' + nuke-refs $out/${python.sitePackages}/scipy/__config__.py + rm $out/${python.sitePackages}/scipy/__pycache__/__config__.*.opt-1.pyc + ''; + preCheck = '' export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 )) cd $out