diff 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
line wrap: on
line diff
--- a/setup.py
+++ b/setup.py
@@ -49,8 +49,10 @@ for directory, _, files in os.walk('pyto
 try:
     from cx_Freeze import setup, Executable
 except ImportError:
+    is_windows = False
     extra = {}
 else:
+    is_windows = True
     extra = {'options': {'build_exe': {'includes': extension_names}},
              'executables': [Executable(script='eosd', base='Win32GUI')]}
 
@@ -65,6 +67,7 @@ setup(name='PyTouhou',
       ext_modules=cythonize(extensions, nthreads=4,
                             compiler_directives={'infer_types': True,
                                                  'infer_types.verbose': True},
-                            compile_time_env={'MAX_TEXTURES': 1024}),
+                            compile_time_env={'MAX_TEXTURES': 1024,
+                                              'USE_GLEW': is_windows}),
       scripts=['eosd', 'anmviewer'],
       **extra)