Browse Source

deploy-ng: Play nicer with Py2

  * ignore pyc files
  * import print_function from __future__
Mitchell Stokes 8 years ago
parent
commit
8fa6026a68
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/showutil/dist.py

+ 3 - 0
direct/src/showutil/dist.py

@@ -1,3 +1,5 @@
+from __future__ import print_function
+
 import collections
 import os
 import pip
@@ -215,6 +217,7 @@ class build_apps(distutils.core.Command):
             # Copy Game Files
             ignore_copy_list = [
                 '__pycache__',
+                '*.pyc',
             ] + list(freezer_modules) + self.exclude_paths + list(self.gui_apps.values()) + list(self.console_apps.values())
             ignore_copy_list = [p3d.GlobPattern(i) for i in ignore_copy_list]