# HG changeset patch # User Emmanuel Gil Peyrot # Date 1387385596 -3600 # Node ID e8496e5ba05660f7f4b24af430e4b7fea887008f # Parent 53129f3a54af61b8b6d666336e195760a171c2bf Add a compilation option to disable anmviewer. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ extension_names = [] extensions = [] debug = False # True to generate HTML annotations and display infered types. +anmviewer = False # It’s currently broken anyway. # Check for gl.pc, and don’t compile the OpenGL backend if it isn’t present. @@ -88,6 +89,8 @@ for directory, _, files in os.walk('pyto compile_args = sdl_args elif extension_name == 'pytouhou.ui.window' and use_opengl: compile_args = opengl_args + elif extension_name == 'pytouhou.ui.anmrenderer' and not anmviewer: + continue else: compile_args = package_args extensions.append(Extension(extension_name, @@ -123,5 +126,5 @@ setup(name='PyTouhou', 'MAX_CHANNELS': 26, 'USE_OPENGL': use_opengl, 'USE_GLEW': is_windows}), - scripts=['eosd', 'anmviewer'], + scripts=['eosd'] + (['anmviewer'] if anmviewer else []), **extra)