From b7aec77a7ba690dc9643a9989ad4e38b65fee4c6 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 17 Jun 2020 14:54:03 +0200 Subject: [PATCH] buildPythonPackage: don't recompile bytecode There are too many regressions. Instead of reverting all the work that has been done on this so far, let's just disable it Python-wide. That way we can investigate and fix it easier. --- .../interpreters/python/mk-python-derivation.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 595102524091..a632efa416ee 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -165,10 +165,8 @@ let # Python packages built through cross-compilation are always for the host platform. disallowedReferences = lib.optionals (python.stdenv.hostPlatform != python.stdenv.buildPlatform) [ python.pythonForBuild ]; - # many packages that support python2, may include code - # which python2 is not able to compile - # mkDerivation hash will not change when passed null attrs - dontUsePythonRecompileBytecode = attrs.dontUsePythonRecompileBytecode or (if python.isPy27 then true else null); + # For now, revert recompilation of bytecode. + dontUsePythonRecompileBytecode = true; meta = { # default to python's platforms