diff options
author | Florian Klink <flokli@flokli.de> | 2019-08-18 22:23:13 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-08-18 23:47:16 +0200 |
commit | 414cde4df44e61115682d8e846fbfb9db0471eea (patch) | |
tree | ad03cf2633eb47fd424722af09e9babeceaf783e /pkgs/development/interpreters | |
parent | 5c0d493df447ac51917908b71f22361d47bb8a56 (diff) | |
download | nixlib-414cde4df44e61115682d8e846fbfb9db0471eea.tar nixlib-414cde4df44e61115682d8e846fbfb9db0471eea.tar.gz nixlib-414cde4df44e61115682d8e846fbfb9db0471eea.tar.bz2 nixlib-414cde4df44e61115682d8e846fbfb9db0471eea.tar.lz nixlib-414cde4df44e61115682d8e846fbfb9db0471eea.tar.xz nixlib-414cde4df44e61115682d8e846fbfb9db0471eea.tar.zst nixlib-414cde4df44e61115682d8e846fbfb9db0471eea.zip |
python: allow stripping IDLE
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index e2286c210296..c1e2cd866343 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -21,6 +21,7 @@ , sha256 , passthruFun , bash +, stripIdlelib ? false }: assert x11Support -> tcl != null @@ -222,6 +223,10 @@ in with passthru; stdenv.mkDerivation { find $out/lib/python*/config-* -type f -print -exec nuke-refs -e $out '{}' + find $out/lib -name '_sysconfigdata*.py*' -print -exec nuke-refs -e $out '{}' + + '' + optionalString stripIdlelib '' + # Strip IDLE (and turtledemo, which uses it) + rm -R $out/bin/idle* $out/lib/python*/{idlelib,turtledemo} + '' + '' # Include a sitecustomize.py file cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py |