pygame /

#!/usr/bin/env python

from distutils.core import setup, Extension
import os, glob, sys

def get_c_files ():
    """Gets the list of files to use for building the module."""
    files = glob.glob (os.path.join ("src", "*.c"))
    return files

if __name__ == "__main__":

    compile_args = []
    if sys.platform == "win32":
        warn_flags = ["-W", "-Wall", "-Wpointer-arith", "-Wcast-qual",
                      "-Winline", "-Wcast-align", "-Wconversion",
                      "-Wstrict-prototypes", "-Wmissing-prototypes",
                      "-Wmissing-declarations", "-Wnested-externs",
                      "-Wshadow", "-Wredundant-decls"
        compile_args = [ "-std=c99", "-g"]
        compile_args += warn_flags

    extphysics = Extension ("physics", sources = get_c_files (),
                            include_dirs = [ "include" ],
                            define_macros = [("PHYSICS_INTERNAL", "1")],
                            extra_compile_args = compile_args)

    setupdata = {
        "name" : "physics",
        "version" : "0.0.1",
        "author" : "Zhang Fan",
        "url" : "",
        "description" : "2D physics module",
        "license": "LGPL",
        "ext_modules" : [ extphysics ],
        "headers" : [ "include/pgphysics.h" ]
    setup (**setupdata)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.