diff options
author | Florian Klink <flokli@flokli.de> | 2019-08-19 00:11:17 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-08-19 00:11:17 +0200 |
commit | 100eae3b77f7ef9c36aa4ff509b2a58c10fcce55 (patch) | |
tree | f1f6397b428e82042fd28f50d6efc1112e591608 /pkgs/development/interpreters | |
parent | db087f226d8fe649f1c437e7afe7f105375c729d (diff) | |
download | nixlib-100eae3b77f7ef9c36aa4ff509b2a58c10fcce55.tar nixlib-100eae3b77f7ef9c36aa4ff509b2a58c10fcce55.tar.gz nixlib-100eae3b77f7ef9c36aa4ff509b2a58c10fcce55.tar.bz2 nixlib-100eae3b77f7ef9c36aa4ff509b2a58c10fcce55.tar.lz nixlib-100eae3b77f7ef9c36aa4ff509b2a58c10fcce55.tar.xz nixlib-100eae3b77f7ef9c36aa4ff509b2a58c10fcce55.tar.zst nixlib-100eae3b77f7ef9c36aa4ff509b2a58c10fcce55.zip |
python: allow stripping tkinter
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 3eddadeda1d3..7561fdad7852 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -24,6 +24,7 @@ , stripConfig ? false , stripIdlelib ? false , stripTests ? false +, stripTkinter ? false , rebuildBytecode ? true , stripBytecode ? false }: @@ -232,6 +233,8 @@ in with passthru; stdenv.mkDerivation { '' + optionalString stripIdlelib '' # Strip IDLE (and turtledemo, which uses it) rm -R $out/bin/idle* $out/lib/python*/{idlelib,turtledemo} + '' + optionalString stripTkinter '' + rm -R $out/lib/python*/tkinter '' + optionalString stripTests '' # Strip tests rm -R $out/lib/python*/test $out/lib/python*/**/test{,s} |