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