From 52fcbbff44980b27183087f210bf27a820a50541 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 18 Aug 2019 23:31:32 +0200 Subject: [PATCH] python: make rebuilding bytecode optional --- pkgs/development/interpreters/python/cpython/default.nix | 2 ++ 1 file changed, 2 insertions(+) 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