comparison setup.py @ 450:2a352118c55a

Add back Windows support, using GLEW for OpenGL.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 30 Aug 2013 18:21:07 +0200
parents d56536ef28e8
children c034570ac785
comparison
equal deleted inserted replaced
449:d56536ef28e8 450:2a352118c55a
47 47
48 # TODO: find a less-intrusive, cleaner way to do this... 48 # TODO: find a less-intrusive, cleaner way to do this...
49 try: 49 try:
50 from cx_Freeze import setup, Executable 50 from cx_Freeze import setup, Executable
51 except ImportError: 51 except ImportError:
52 is_windows = False
52 extra = {} 53 extra = {}
53 else: 54 else:
55 is_windows = True
54 extra = {'options': {'build_exe': {'includes': extension_names}}, 56 extra = {'options': {'build_exe': {'includes': extension_names}},
55 'executables': [Executable(script='eosd', base='Win32GUI')]} 57 'executables': [Executable(script='eosd', base='Win32GUI')]}
56 58
57 59
58 setup(name='PyTouhou', 60 setup(name='PyTouhou',
63 license='GPLv3', 65 license='GPLv3',
64 packages=packages, 66 packages=packages,
65 ext_modules=cythonize(extensions, nthreads=4, 67 ext_modules=cythonize(extensions, nthreads=4,
66 compiler_directives={'infer_types': True, 68 compiler_directives={'infer_types': True,
67 'infer_types.verbose': True}, 69 'infer_types.verbose': True},
68 compile_time_env={'MAX_TEXTURES': 1024}), 70 compile_time_env={'MAX_TEXTURES': 1024,
71 'USE_GLEW': is_windows}),
69 scripts=['eosd', 'anmviewer'], 72 scripts=['eosd', 'anmviewer'],
70 **extra) 73 **extra)