comparison setup.py @ 506:08d9e6730364

Don’t compile useless packages.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 01 Nov 2013 14:45:53 +0100
parents bfea9e9a6845
children b39ad30c6620
comparison
equal deleted inserted replaced
505:bfea9e9a6845 506:08d9e6730364
35 35
36 36
37 for directory, _, files in os.walk('pytouhou'): 37 for directory, _, files in os.walk('pytouhou'):
38 package = directory.replace(os.path.sep, '.') 38 package = directory.replace(os.path.sep, '.')
39 packages.append(package) 39 packages.append(package)
40 if (package == 'pytouhou.formats' or package == 'pytouhou.vm'): 40 if package not in ('pytouhou.game', 'pytouhou.lib', 'pytouhou.ui', 'pytouhou.utils'):
41 continue 41 continue
42 if package == 'pytouhou.ui': 42 if package == 'pytouhou.ui':
43 compile_args = get_arguments('--cflags', ['gl'] + SDL_LIBRARIES) 43 compile_args = get_arguments('--cflags', ['gl'] + SDL_LIBRARIES)
44 link_args = get_arguments('--libs', ['gl'] + SDL_LIBRARIES) 44 link_args = get_arguments('--libs', ['gl'] + SDL_LIBRARIES)
45 else: 45 else: