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 , cython 11 , gfortran 12 , meson-python 13 , pkg-config 14 , pythran 15 , wheel ··· 94 cython 95 gfortran 96 meson-python 97 pythran 98 pkg-config 99 wheel ··· 165 # ldr x0, [x0, ___stack_chk_guard];momd 166 # 167 hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; 168 169 preCheck = '' 170 export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 ))
··· 10 , cython 11 , gfortran 12 , meson-python 13 + , nukeReferences 14 , pkg-config 15 , pythran 16 , wheel ··· 95 cython 96 gfortran 97 meson-python 98 + nukeReferences 99 pythran 100 pkg-config 101 wheel ··· 167 # ldr x0, [x0, ___stack_chk_guard];momd 168 # 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 + ''; 176 177 preCheck = '' 178 export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 ))