from distutils.core import setup, Extension compile_args = ['-Os','-Wno-nullability-completeness', '-Wno-expansion-to-defined', '-Waddress-of-packed-member'] def main(): setup(name="Ben Badnani", version="1.0.0", description="Python interface for the fputs C library function", author="<your name>", author_email="your_email@gmail.com", ext_modules=[Extension("counters", sources=["counters_wrapper.c"], extra_compile_args=compile_args)]) # os flag is to optimize for space. if __name__ == "__main__": main()