changeset 630:6c40f5840a06

Include all of the modules during cx_Freeze, and don’t prevent multi-threaded Cython compilation on non-Windows platforms.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 05 May 2015 13:34:57 +0200
parents 26d9d251f658
children cd8a2baf468c
files setup.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py
+++ b/setup.py
@@ -158,9 +158,11 @@ try:
 except ImportError:
     extra = {}
 else:
-    nthreads = None  # It seems Windows can’t compile in parallel.
-    base = 'Win32GUI' if sys.platform == 'win32' else None
-    extra = {'options': {'build_exe': {'includes': [mod.name for mod in ext_modules] + ['glob', 'socket', 'select']}},
+    base = None
+    if sys.platform == 'win32':
+        nthreads = None  # It seems Windows can’t compile in parallel.
+        base = 'Win32GUI'
+    extra = {'options': {'build_exe': {'includes': [mod.name for mod in ext_modules] + py_modules}},
              'executables': [Executable(script='scripts/pytouhou', base=base)]}