mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
python: allow stripping IDLE
This commit is contained in:
parent
5c0d493df4
commit
414cde4df4
@ -21,6 +21,7 @@
|
|||||||
, sha256
|
, sha256
|
||||||
, passthruFun
|
, passthruFun
|
||||||
, bash
|
, bash
|
||||||
|
, stripIdlelib ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert x11Support -> tcl != null
|
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/python*/config-* -type f -print -exec nuke-refs -e $out '{}' +
|
||||||
find $out/lib -name '_sysconfigdata*.py*' -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
|
# Include a sitecustomize.py file
|
||||||
cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
|
cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user