libs=sdl_libs) cython("pygame-sdl2.draw", libs=sdl_libs) cython("pygame-sdl2.font", libs=['SDL2_ttf'] + sdl_libs) cython("pygame-sdl2.mixer", libs=['SDL2_mixer'] + sdl_libs) cython("pygame-sdl2.mixer_music", libs=['SDL2_mixer'] + sdl_libs) cython("pygame-sdl2.scrap", libs=sdl_libs) cython("pygame-sdl2.render", libs=['SDL2_image'] + sdl_libs) headers = [ "src/pygame-sdl2/pygame-sdl2.h", gen + "/pygame-sdl2.rwobject_api.h", gen + "/pygame-sdl2.surface_api.h", gen + "/pygame-sdl2.display_api.h", ] if __name__ == "__main__": setup( "pygame-sdl2", VERSION, headers=headers, url="https://github.com/renpy/pygame-sdl2", maintainer="Tom Rothamel", maintainer_email="*****@*****.**", ) find_unnecessary_gen() for i in temporary_package_data: os.unlink( os.path.join(os.path.dirname(__file__), "src", "pygame-sdl2", i))
libs=angle_libs, compile_if=has_angle, define_macros=[("ANGLE", None)], source=source) anglecython("renpy.angle.gl") anglecython("renpy.angle.gldraw", source=["egl_angle.c"]) anglecython("renpy.angle.gltexture") anglecython("renpy.angle.glenviron_shader") anglecython("renpy.angle.glrtt_fbo") anglecython("renpy.angle.glrtt_copy") # renpy.text cython("renpy.text.textsupport") cython("renpy.text.texwrap") cython("renpy.text.ftfont", ["ftsupport.c", "ttgsubtable.c"], libs=sdl + ['freetype', 'z', 'm']) find_unnecessary_gen() # Figure out the version, and call setup. sys.path.insert(0, '..') import renpy setuplib.setup("Ren'Py", renpy.version[7:]) # @UndefinedVariable if not has_fribidi: print("Warning: Did not include fribidi.")
angle_libs = [ "SDL2", "EGL", "GLESv2" ] def anglecython(name, source=[]): cython(name, libs=angle_libs, compile_if=has_angle, define_macros=[ ( "ANGLE", None ) ], source=source) anglecython("renpy.angle.gl") anglecython("renpy.angle.gldraw", source=[ "egl_angle.c" ]) anglecython("renpy.angle.gltexture") anglecython("renpy.angle.glenviron_shader") anglecython("renpy.angle.glrtt_fbo") anglecython("renpy.angle.glrtt_copy") # renpy.text cython("renpy.text.textsupport") cython("renpy.text.texwrap") cython( "renpy.text.ftfont", [ "ftsupport.c", "ttgsubtable.c" ], libs=sdl + [ 'freetype', 'z', 'm' ]) find_unnecessary_gen() # Figure out the version, and call setup. sys.path.insert(0, '..') import renpy setuplib.setup("Ren'Py", renpy.version[7:]) # @UndefinedVariable
cython(name, libs=angle_libs, compile_if=has_angle, define_macros=[("ANGLE", None)], source=source) anglecython("renpy.angle.gldraw", source=["anglesupport.c"]) anglecython("renpy.angle.gltexture") anglecython("renpy.angle.glenviron_shader") anglecython("renpy.angle.glrtt_fbo") anglecython("renpy.angle.glrtt_copy") # Text. cython("renpy.text.textsupport") cython("renpy.text.texwrap") cython("renpy.text.ftfont", ["ftsupport.c", "ttgsubtable.c"], libs=sdl + ['freetype', 'z', 'm']) find_unnecessary_gen() # Figure out the version, and call setup. sys.path.insert(0, '..') import renpy setuplib.setup("Ren'Py", renpy.version[7:]) if not has_fribidi: print "Warning: Did not include fribidi."
def anglecython(name, source=[]): cython(name, libs=angle_libs, compile_if=has_angle, define_macros=[ ( "ANGLE", None ) ], source=source) anglecython("renpy.angle.gl") anglecython("renpy.angle.gldraw", source=[ "egl_angle.c" ]) anglecython("renpy.angle.gltexture") anglecython("renpy.angle.glenviron_shader") anglecython("renpy.angle.glrtt_fbo") anglecython("renpy.angle.glrtt_copy") # renpy.text cython("renpy.text.textsupport") cython("renpy.text.texwrap") cython( "renpy.text.ftfont", [ "ftsupport.c", "ttgsubtable.c" ], libs = sdl + [ 'freetype', 'z', 'm' ]) find_unnecessary_gen() # Figure out the version, and call setup. sys.path.insert(0, '..') import renpy setuplib.setup("Ren'Py", renpy.version[7:]) if not has_fribidi: print "Warning: Did not include fribidi."
setup( name='pynotifyx', version='.'.join(map(str, version)), description= 'pynotifyx is a simple Python binding to the Linux inotify file system event monitoring API.', long_description=''' pynotifyx is a simple Python binding to the Linux inotify file system event monitoring API. Documentation is provided in the module. To get help, start an interactive Python session and type: >>> import pynotifyx >>> help(pynotifyx) You can also test out pynotifyx easily. The following command will print events for /tmp: python -m pynotifyx /tmp Tests can be run via setup.py: ./setup.py test Note that the module must be built and installed for tests to run correctly. In the future, this requirement will be lifted. Visit https://github.com/joeisca/pynotifyx for more information.''', author='Joe Isca', author_email='*****@*****.**', url='https://github.com/joeisca/pynotifyx/', packages=['pynotifyx'], entry_points={"console_scripts": [ "pynotifyx=pynotifyx.__init__:main", ]}, ext_modules=[ Extension( 'pynotifyx.binding', sources=[os.path.join('pynotifyx', 'binding.c')], ), ], )
cython("pygame_sdl2.transform", source=["src/SDL2_rotozoom.c"], libs=sdl_libs) cython("pygame_sdl2.gfxdraw", source=["src/SDL_gfxPrimitives.c"], libs=sdl_libs) cython("pygame_sdl2.draw", libs=sdl_libs) cython("pygame_sdl2.font", libs=["SDL2_ttf"] + sdl_libs) cython("pygame_sdl2.mixer", libs=["SDL2_mixer"] + sdl_libs) cython("pygame_sdl2.mixer_music", libs=["SDL2_mixer"] + sdl_libs) cython("pygame_sdl2.scrap", libs=sdl_libs) cython("pygame_sdl2.render", libs=["SDL2_image"] + sdl_libs) headers = [ "src/pygame_sdl2/pygame_sdl2.h", gen + "/pygame_sdl2.rwobject_api.h", gen + "/pygame_sdl2.surface_api.h", gen + "/pygame_sdl2.display_api.h", ] if __name__ == "__main__": setup( "pygame_sdl2", VERSION, headers=headers, url="https://github.com/renpy/pygame_sdl2", maintainer="Tom Rothamel", maintainer_email="*****@*****.**", ) find_unnecessary_gen() for i in temporary_package_data: os.unlink(os.path.join(os.path.dirname(__file__), "src", "pygame_sdl2", i))
cython("pygame_sdl2.display", libs=sdl_libs) cython("pygame_sdl2.event", libs=sdl_libs) cython("pygame_sdl2.locals", libs=sdl_libs) cython("pygame_sdl2.key", libs=sdl_libs) cython("pygame_sdl2.mouse", libs=sdl_libs) cython("pygame_sdl2.joystick", libs=sdl_libs) cython("pygame_sdl2.time", libs=sdl_libs) cython("pygame_sdl2.image", libs=['SDL2_image'] + sdl_libs) cython("pygame_sdl2.transform", libs=['SDL2_gfx'] + sdl_libs) cython("pygame_sdl2.gfxdraw", libs=['SDL2_gfx'] + sdl_libs) cython("pygame_sdl2.draw", libs=sdl_libs) cython("pygame_sdl2.font", libs=['SDL2_ttf'] + sdl_libs) cython("pygame_sdl2.mixer", libs=['SDL2_mixer'] + sdl_libs) cython("pygame_sdl2.mixer_music", libs=['SDL2_mixer'] + sdl_libs) cython("pygame_sdl2.scrap", libs=sdl_libs) cython("pygame_sdl2.render", libs=['SDL2_image'] + sdl_libs) if "PYGAME_SDL2_INSTALL_HEADERS" in os.environ: headers = [ "src/pygame_sdl2/pygame_sdl2.h", "gen/pygame_sdl2.rwobject_api.h", "gen/pygame_sdl2.surface_api.h", "gen/pygame_sdl2.display_api.h", ] else: headers = [ ] setup("pygame_sdl2", "0.1", headers=headers) find_unnecessary_gen()
cython("pygame_sdl2.event", libs=sdl_libs) cython("pygame_sdl2.locals", libs=sdl_libs) cython("pygame_sdl2.key", libs=sdl_libs) cython("pygame_sdl2.mouse", libs=sdl_libs) cython("pygame_sdl2.joystick", libs=sdl_libs) cython("pygame_sdl2.pygame_time", libs=sdl_libs) cython("pygame_sdl2.image", source=["src/write_jpeg.c", "src/write_png.c"], libs=['SDL2_image', "jpeg", png] + sdl_libs) cython("pygame_sdl2.transform", source=["src/SDL2_rotozoom.c"], libs=sdl_libs) cython("pygame_sdl2.gfxdraw", source=["src/SDL_gfxPrimitives.c"], libs=sdl_libs) cython("pygame_sdl2.draw", libs=sdl_libs) cython("pygame_sdl2.font", libs=['SDL2_ttf'] + sdl_libs) cython("pygame_sdl2.mixer", libs=['SDL2_mixer'] + sdl_libs) cython("pygame_sdl2.mixer_music", libs=['SDL2_mixer'] + sdl_libs) cython("pygame_sdl2.scrap", libs=sdl_libs) cython("pygame_sdl2.render", libs=['SDL2_image'] + sdl_libs) headers = [ "src/pygame_sdl2/pygame_sdl2.h", gen + "/pygame_sdl2.rwobject_api.h", gen + "/pygame_sdl2.surface_api.h", gen + "/pygame_sdl2.display_api.h", ] setup("pygame_sdl2", "0.1", headers=headers) find_unnecessary_gen()
f = open(release_file, 'r') try: return f.read().strip() finally: f.close() except (IOError, OSError): status, output = commands.getstatusoutput('bzr revno') if status == 0: return 'bzr%s' % output.strip() return 'unknown' version = get_version('release') setup( name = 'inotifyx', distinfo_module = 'inotifyx.distinfo', version = version, description = 'Simple Linux inotify bindings', author = 'Forest Bond', author_email = '*****@*****.**', url = 'https://launchpad.net/inotifyx/', packages = ['inotifyx'], ext_modules = [ Extension( 'inotifyx.binding', sources = [os.path.join('inotifyx', 'binding.c')], ), ], )