python311Packages.scipy: remove references to dev outputs

This commit is contained in:
Sandro Jäckel 2024-03-24 00:50:39 +01:00
parent cba6cf337c
commit 92aca9c6b5
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 8 additions and 0 deletions

View File

@ -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