From ad3706e6f12af75c68390cbf44ae13d66f8dba8a Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 9 Mar 2014 00:05:53 +0000 Subject: [PATCH] Don't copy .pyc and .pyo files to built/direct --- makepanda/makepandacore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 1046aa29e4..0c760d30a0 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -2395,7 +2395,7 @@ def CopyPythonTree(dstdir, srcdir, lib2to3_fixers=[]): dstpth = os.path.join(dstdir, entry) if (os.path.isfile(srcpth)): base, ext = os.path.splitext(entry) - if (entry != ".cvsignore" and ext not in SUFFIX_INC): + if (entry != ".cvsignore" and ext not in SUFFIX_INC + ['.pyc', '.pyo']): if (NeedsBuild([dstpth], [srcpth])): WriteBinaryFile(dstpth, ReadBinaryFile(srcpth))