lol

Merge pull request #298685 from SuperSandro2000/scipy-dev

python311Packages.scipy: remove references to dev outputs

authored by

Doron Behar and committed by
GitHub
276cb5fb cf80157e

+8
+8
pkgs/development/python-modules/scipy/default.nix
··· 10 10 , cython 11 11 , gfortran 12 12 , meson-python 13 + , nukeReferences 13 14 , pkg-config 14 15 , pythran 15 16 , wheel ··· 94 95 cython 95 96 gfortran 96 97 meson-python 98 + nukeReferences 97 99 pythran 98 100 pkg-config 99 101 wheel ··· 165 167 # ldr x0, [x0, ___stack_chk_guard];momd 166 168 # 167 169 hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; 170 + 171 + # remove references to dev dependencies 172 + postInstall = '' 173 + nuke-refs $out/${python.sitePackages}/scipy/__config__.py 174 + rm $out/${python.sitePackages}/scipy/__pycache__/__config__.*.opt-1.pyc 175 + ''; 168 176 169 177 preCheck = '' 170 178 export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 ))