Mercurial > touhou
comparison setup.py @ 521:53129f3a54af
Add a debug option to enable HTML annotations, type inference display and profiling.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 18 Dec 2013 17:10:21 +0100 |
parents | b3193b43a86c |
children | e8496e5ba056 |
comparison
equal
deleted
inserted
replaced
520:c0b3f8709f74 | 521:53129f3a54af |
---|---|
20 GL_LIBRARIES = ['gl'] | 20 GL_LIBRARIES = ['gl'] |
21 | 21 |
22 packages = [] | 22 packages = [] |
23 extension_names = [] | 23 extension_names = [] |
24 extensions = [] | 24 extensions = [] |
25 | |
26 debug = False # True to generate HTML annotations and display infered types. | |
25 | 27 |
26 | 28 |
27 # Check for gl.pc, and don’t compile the OpenGL backend if it isn’t present. | 29 # Check for gl.pc, and don’t compile the OpenGL backend if it isn’t present. |
28 try: | 30 try: |
29 check_output([COMMAND] + GL_LIBRARIES) | 31 check_output([COMMAND] + GL_LIBRARIES) |
110 author='Thibaut Girka', | 112 author='Thibaut Girka', |
111 author_email='thib@sitedethib.com', | 113 author_email='thib@sitedethib.com', |
112 url='http://pytouhou.linkmauve.fr/', | 114 url='http://pytouhou.linkmauve.fr/', |
113 license='GPLv3', | 115 license='GPLv3', |
114 packages=packages, | 116 packages=packages, |
115 ext_modules=cythonize(extensions, nthreads=4, | 117 ext_modules=cythonize(extensions, nthreads=4, annotate=debug, |
116 compiler_directives={'infer_types': True, | 118 compiler_directives={'infer_types': True, |
117 'infer_types.verbose': True}, | 119 'infer_types.verbose': debug, |
120 'profile': debug}, | |
118 compile_time_env={'MAX_TEXTURES': 128, | 121 compile_time_env={'MAX_TEXTURES': 128, |
119 'MAX_ELEMENTS': 640 * 4 * 3, | 122 'MAX_ELEMENTS': 640 * 4 * 3, |
120 'MAX_CHANNELS': 26, | 123 'MAX_CHANNELS': 26, |
121 'USE_OPENGL': use_opengl, | 124 'USE_OPENGL': use_opengl, |
122 'USE_GLEW': is_windows}), | 125 'USE_GLEW': is_windows}), |