diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 071450ab84e..3f2e7ebaf02 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -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