python: allow stripping config
This commit is contained in:
parent
d03283c029
commit
8335f3dd5c
@ -21,6 +21,7 @@
|
|||||||
, sha256
|
, sha256
|
||||||
, passthruFun
|
, passthruFun
|
||||||
, bash
|
, bash
|
||||||
|
, stripConfig ? false
|
||||||
, stripIdlelib ? false
|
, stripIdlelib ? false
|
||||||
, stripTests ? false
|
, stripTests ? false
|
||||||
}:
|
}:
|
||||||
@ -224,6 +225,8 @@ 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 stripConfig ''
|
||||||
|
rm -R $out/bin/python*-config $out/lib/python*/config-*
|
||||||
'' + optionalString stripIdlelib ''
|
'' + optionalString stripIdlelib ''
|
||||||
# Strip IDLE (and turtledemo, which uses it)
|
# Strip IDLE (and turtledemo, which uses it)
|
||||||
rm -R $out/bin/idle* $out/lib/python*/{idlelib,turtledemo}
|
rm -R $out/bin/idle* $out/lib/python*/{idlelib,turtledemo}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user