pythonMinimal: don't include site-customise

Experimenting with patching the site-customize file causes mass
rebuilds for no reason.
This commit is contained in:
Graham Christensen
2020-03-12 09:15:02 -04:00
committed by Frederik Rietdijk
parent 0c13b0d7d3
commit 39aac70d74
2 changed files with 3 additions and 1 deletions

View File

@@ -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 ''