Bouncer / bouncer / linear_sketches / setup.py
setup.py
Raw
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize

import shutil
from pathlib import Path

dirname = Path(__file__).parent/"build"
shutil.rmtree(dirname, ignore_errors=True)

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

def main():
    setup(name="sketches",
          version="1.0.0",
          description="Linear sketches library",
          author="<your name>",
          author_email="your_email@gmail.com", 
          ext_modules=cythonize(Extension("sketches", ["sketches.c"] , extra_compile_args=copmile_args)))
            # os flag is to optimize for space. 
if __name__ == "__main__":
    main()