pythonMinimal: don't include site-customise
Experimenting with patching the site-customize file causes mass rebuilds for no reason.
This commit is contained in:
committed by
Frederik Rietdijk
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 ''
|
||||
|
||||
Reference in New Issue
Block a user