Skip to content

Commit

Permalink
Merge pull request #298685 from SuperSandro2000/scipy-dev
Browse files Browse the repository at this point in the history
python311Packages.scipy: remove references to dev outputs
  • Loading branch information
doronbehar committed Mar 27, 2024
2 parents cf80157 + 92aca9c commit 276cb5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/python-modules/scipy/default.nix
Expand Up @@ -10,6 +10,7 @@
, cython
, gfortran
, meson-python
, nukeReferences
, pkg-config
, pythran
, wheel
Expand Down Expand Up @@ -94,6 +95,7 @@ in buildPythonPackage {
cython
gfortran
meson-python
nukeReferences
pythran
pkg-config
wheel
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 276cb5f

Please sign in to comment.