mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Don't copy .pyc and .pyo files to built/direct
This commit is contained in:
parent
0b99086e8c
commit
ad3706e6f1
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user