python: make rebuilding bytecode optional

This commit is contained in:
Florian Klink 2019-08-18 23:31:32 +02:00
parent 8335f3dd5c
commit 52fcbbff44

View file

@ -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