From c52db7239bd9baef3c11ac2624be07078b395786 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 2 Nov 2019 19:51:16 +0100 Subject: [PATCH] makepanda: fix unnecessary re-copy of unmodified direct files --- makepanda/makepandacore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index b45dc511c0..0ba33518e8 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -3165,7 +3165,7 @@ def CopyPythonTree(dstdir, srcdir, lib2to3_fixers=[], threads=0): if (NeedsBuild([dstpth], [srcpth])): WriteBinaryFile(dstpth, ReadBinaryFile(srcpth)) - if ext == '.py' and not entry.endswith('-extensions.py'): + if ext == '.py' and not entry.endswith('-extensions.py') and lib2to3 is not None: refactor.append((dstpth, srcpth)) lib2to3_args.append(dstpth) else: