mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
python: allow stripping IDLE
This commit is contained in:
parent
5c0d493df4
commit
414cde4df4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user