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
|
, stripTkinter ? false
|
||||||
, rebuildBytecode ? true
|
, rebuildBytecode ? true
|
||||||
, stripBytecode ? false
|
, stripBytecode ? false
|
||||||
|
, includeSiteCustomize ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert x11Support -> tcl != null
|
assert x11Support -> tcl != null
|
||||||
@ -237,7 +238,7 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
'' + optionalString stripTests ''
|
'' + optionalString stripTests ''
|
||||||
# Strip tests
|
# Strip tests
|
||||||
rm -R $out/lib/python*/test $out/lib/python*/**/test{,s}
|
rm -R $out/lib/python*/test $out/lib/python*/**/test{,s}
|
||||||
'' + ''
|
'' + optionalString includeSiteCustomize ''
|
||||||
# Include a sitecustomize.py file
|
# Include a sitecustomize.py file
|
||||||
cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
|
cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
|
||||||
'' + optionalString rebuildBytecode ''
|
'' + optionalString rebuildBytecode ''
|
||||||
|
@ -143,6 +143,7 @@ in {
|
|||||||
stripTkinter = true;
|
stripTkinter = true;
|
||||||
rebuildBytecode = false;
|
rebuildBytecode = false;
|
||||||
stripBytecode = true;
|
stripBytecode = true;
|
||||||
|
includeSiteCustomize = false;
|
||||||
}).overrideAttrs(old: {
|
}).overrideAttrs(old: {
|
||||||
pname = "python3-minimal";
|
pname = "python3-minimal";
|
||||||
meta = old.meta // {
|
meta = old.meta // {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user