pythonMinimal: don't include site-customise
Experimenting with patching the site-customize file causes mass rebuilds for no reason.
This commit is contained in:
parent
0c13b0d7d3
commit
39aac70d74
|
@ -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 ''
|
||||
|
|
|
@ -143,6 +143,7 @@ in {
|
|||
stripTkinter = true;
|
||||
rebuildBytecode = false;
|
||||
stripBytecode = true;
|
||||
includeSiteCustomize = false;
|
||||
}).overrideAttrs(old: {
|
||||
pname = "python3-minimal";
|
||||
meta = old.meta // {
|
||||
|
|
Loading…
Reference in a new issue