about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/cpython
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2020-03-12 09:15:02 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-03-14 15:02:51 +0100
commit39aac70d745ecf322a70a5cb77799f26ad98b64a (patch)
tree05df1ed8509c1204e41463e211ddf04e4f166805 /pkgs/development/interpreters/python/cpython
parent0c13b0d7d323478634220c99c7a80628039ba96a (diff)
downloadnixlib-39aac70d745ecf322a70a5cb77799f26ad98b64a.tar
nixlib-39aac70d745ecf322a70a5cb77799f26ad98b64a.tar.gz
nixlib-39aac70d745ecf322a70a5cb77799f26ad98b64a.tar.bz2
nixlib-39aac70d745ecf322a70a5cb77799f26ad98b64a.tar.lz
nixlib-39aac70d745ecf322a70a5cb77799f26ad98b64a.tar.xz
nixlib-39aac70d745ecf322a70a5cb77799f26ad98b64a.tar.zst
nixlib-39aac70d745ecf322a70a5cb77799f26ad98b64a.zip
pythonMinimal: don't include site-customise
Experimenting with patching the site-customize file causes mass
rebuilds for no reason.
Diffstat (limited to 'pkgs/development/interpreters/python/cpython')
-rw-r--r--pkgs/development/interpreters/python/cpython/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix
index b778b62f908d..d9d004090953 100644
--- a/pkgs/development/interpreters/python/cpython/default.nix
+++ b/pkgs/development/interpreters/python/cpython/default.nix
@@ -28,6 +28,7 @@
 , stripTkinter ? false
 , rebuildBytecode ? true
 , stripBytecode ? false
+, includeSiteCustomize ? true
 }:
 
 assert x11Support -> tcl != null
@@ -237,7 +238,7 @@ in with passthru; stdenv.mkDerivation {
     '' + optionalString stripTests ''
     # Strip tests
     rm -R $out/lib/python*/test $out/lib/python*/**/test{,s}
-    '' + ''
+    '' + optionalString includeSiteCustomize ''
     # Include a sitecustomize.py file
     cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
     '' + optionalString rebuildBytecode ''