comparison setup.py @ 553:8f51e34d911c

Refactor graphics backend selection, to make them fallbackable and optional.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 29 May 2014 12:31:55 +0200
parents 94dd9862c470
children 98380e4a0ee5
comparison
equal deleted inserted replaced
552:aad758aef26d 553:8f51e34d911c
102 not filename == '__init__.py'): 102 not filename == '__init__.py'):
103 extension_name = '%s.%s' % (package, os.path.splitext(filename)[0]) 103 extension_name = '%s.%s' % (package, os.path.splitext(filename)[0])
104 extension_names.append(extension_name) 104 extension_names.append(extension_name)
105 if extension_name == 'pytouhou.lib.sdl': 105 if extension_name == 'pytouhou.lib.sdl':
106 compile_args = sdl_args 106 compile_args = sdl_args
107 elif extension_name == 'pytouhou.ui.window' and use_opengl:
108 compile_args = opengl_args
109 elif extension_name == 'pytouhou.ui.anmrenderer' and not anmviewer: 107 elif extension_name == 'pytouhou.ui.anmrenderer' and not anmviewer:
110 extension_names.pop() 108 extension_names.pop()
111 continue 109 continue
112 elif package == 'pytouhou.formats' and extension_name != 'pytouhou.formats.anm0': 110 elif package == 'pytouhou.formats' and extension_name != 'pytouhou.formats.anm0':
113 continue 111 continue