Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

python311Packages.scipy: remove references to dev outputs #298685

Merged
merged 1 commit into from Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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