Bouncer / bouncer / setup.py
setup.py
Raw
from distutils.core import setup, Extension

# last flag is important for addressable packed types 
copmile_args = ['-O0', '-Os','-Wno-nullability-completeness', '-Wno-expansion-to-defined', '-Waddress-of-packed-member', '-Wpragma-pack'] 

def main():
    setup(name="bouncer",
          version="1.0.0",
          description="Python interface for the fputs C library function",
          author="Ben Badnani",
          author_email="bbadnani@bu.edu", 
          ext_modules=[Extension("bouncer.sketches", ["linear_sketches/sketches.c"] , extra_compile_args=copmile_args),
                   Extension("bouncer.counters", ["counters/counters_wrapper.c"] , extra_compile_args=copmile_args)])
            # os flag is to optimize for space. 

if __name__ == "__main__":
    main()