python: make rebuilding bytecode optional
This commit is contained in:
parent
8335f3dd5c
commit
52fcbbff44
@ -24,6 +24,7 @@
|
||||
, stripConfig ? false
|
||||
, stripIdlelib ? false
|
||||
, stripTests ? false
|
||||
, rebuildBytecode ? true
|
||||
}:
|
||||
|
||||
assert x11Support -> tcl != null
|
||||
@ -236,6 +237,7 @@ in with passthru; stdenv.mkDerivation {
|
||||
'' + ''
|
||||
# Include a sitecustomize.py file
|
||||
cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
|
||||
'' + optionalString rebuildBytecode ''
|
||||
|
||||
# Determinism: rebuild all bytecode
|
||||
# We exclude lib2to3 because that's Python 2 code which fails
|
||||
|
Loading…
Reference in New Issue
Block a user