yappi / setup.py

from distutils.core import setup, Extension

f = open('README')
long_description = f.read()

HOMEPAGE = "http://yappi.googlecode.com/"
NAME = "yappi"
VERSION = "0.54"

setup(name=NAME, 
    version=VERSION,    
    author="Sumer Cip",
    author_email="sumerc@gmail.com",
    ext_modules = [Extension
        ("_yappi",
            sources = ["_yappi.c", "_ycallstack.c", 
                "_yhashtab.c", "_ymem.c", "_yfreelist.c", 
                "_ytiming.c"],
            depends = ["_ycallstack.h"],
            #define_macros=[('DEBUG_MEM', '1'), ('DEBUG_CALL', '1'), ('YDEBUG', '1')],
            #define_macros=[('YDEBUG', '1')],
            #define_macros=[('DEBUG_CALL', '1')],
            #define_macros=[('DEBUG_MEM', '1')],		
            #extra_link_args = ["-lrt"]
            #extra_compile_args = ["TEST"]
            #extra_compile_args = ["-E"]
        )
    ],
    py_modules =  ["yappi"],
    description="Yet Another Python Profiler",
    long_description = long_description,
    keywords = "python multithread profile",
    license = "MIT",
    url = HOMEPAGE,
    download_url = "%s/files/%s-%s.tar.gz" % (HOMEPAGE, NAME, VERSION),
)
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 ProjectModifiedEvent.java.
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.