from setuptools import setup, Extension
from Cython.Build import cythonize
setup(
ext_modules=cythonize(
[
Extension("txt", ["txt.pyx"], extra_compile_args=["-O3", "-std=c11"]),
Extension("hackerman", ["hackerman.pyx"], extra_compile_args=["-O3", "-std=c11"]),
Extension("scrpd", ["scrpd.pyx"], extra_compile_args=["-O3", "-std=c11"]),
Extension("todo", ["todo.pyx"], extra_compile_args=["-O3", "-std=c11"]),
Extension("odin", ["odin.pyx"], extra_compile_args=["-O3", "-std=c11"]),
],
compiler_directives={ "language_level": "3" },
)
)
#!/bin/bash
if [[ $(uname) == "Darwin" ]]; then
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
fi
.venv/bin/python build.py build_ext --inplace