comparison setup.py @ 455:6864a38b2413

Make pytouhou.lib.sdl cimportable, and convert pytouhou.ui.window.* to extension types.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 02 Sep 2013 22:16:38 +0200
parents c034570ac785
children cae1ae9de430
comparison
equal deleted inserted replaced
454:a502887557ac 455:6864a38b2413
43 extension_names.append(extension_name) 43 extension_names.append(extension_name)
44 if extension_name == 'pytouhou.lib.sdl': 44 if extension_name == 'pytouhou.lib.sdl':
45 compile_args = get_arguments('--cflags', SDL_LIBRARIES) 45 compile_args = get_arguments('--cflags', SDL_LIBRARIES)
46 link_args = get_arguments('--libs', SDL_LIBRARIES) 46 link_args = get_arguments('--libs', SDL_LIBRARIES)
47 elif extension_name.startswith('pytouhou.ui.'): #XXX 47 elif extension_name.startswith('pytouhou.ui.'): #XXX
48 compile_args = get_arguments('--cflags', ['gl']) 48 compile_args = get_arguments('--cflags', ['gl'] + SDL_LIBRARIES)
49 link_args = get_arguments('--libs', ['gl']) 49 link_args = get_arguments('--libs', ['gl'] + SDL_LIBRARIES)
50 else: 50 else:
51 compile_args = None 51 compile_args = None
52 link_args = None 52 link_args = None
53 extensions.append(Extension(extension_name, 53 extensions.append(Extension(extension_name,
54 [os.path.join(directory, filename)], 54 [os.path.join(directory, filename)],