Merge pull request #298685 from SuperSandro2000/scipy-dev
python311Packages.scipy: remove references to dev outputs
This commit is contained in:
commit
276cb5fbe7
|
@ -10,6 +10,7 @@
|
||||||
, cython
|
, cython
|
||||||
, gfortran
|
, gfortran
|
||||||
, meson-python
|
, meson-python
|
||||||
|
, nukeReferences
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, pythran
|
, pythran
|
||||||
, wheel
|
, wheel
|
||||||
|
@ -94,6 +95,7 @@ in buildPythonPackage {
|
||||||
cython
|
cython
|
||||||
gfortran
|
gfortran
|
||||||
meson-python
|
meson-python
|
||||||
|
nukeReferences
|
||||||
pythran
|
pythran
|
||||||
pkg-config
|
pkg-config
|
||||||
wheel
|
wheel
|
||||||
|
@ -166,6 +168,12 @@ in buildPythonPackage {
|
||||||
#
|
#
|
||||||
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
|
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 = ''
|
preCheck = ''
|
||||||
export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 ))
|
export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 ))
|
||||||
cd $out
|
cd $out
|
||||||
|
|
Loading…
Reference in New Issue
Block a user