comparison setup.py @ 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 38928d4d6709
comparison
equal deleted inserted replaced
629:26d9d251f658 630:6c40f5840a06
156 try: 156 try:
157 from cx_Freeze import setup, Executable 157 from cx_Freeze import setup, Executable
158 except ImportError: 158 except ImportError:
159 extra = {} 159 extra = {}
160 else: 160 else:
161 nthreads = None # It seems Windows can’t compile in parallel. 161 base = None
162 base = 'Win32GUI' if sys.platform == 'win32' else None 162 if sys.platform == 'win32':
163 extra = {'options': {'build_exe': {'includes': [mod.name for mod in ext_modules] + ['glob', 'socket', 'select']}}, 163 nthreads = None # It seems Windows can’t compile in parallel.
164 base = 'Win32GUI'
165 extra = {'options': {'build_exe': {'includes': [mod.name for mod in ext_modules] + py_modules}},
164 'executables': [Executable(script='scripts/pytouhou', base=base)]} 166 'executables': [Executable(script='scripts/pytouhou', base=base)]}
165 167
166 168
167 # Create a link to the data files (for packaging purposes) 169 # Create a link to the data files (for packaging purposes)
168 current_dir = os.path.dirname(os.path.realpath(__file__)) 170 current_dir = os.path.dirname(os.path.realpath(__file__))