comment-server/compile.py

18 lines
593 B
Python
Raw Normal View History

2019-05-26 04:44:27 +02:00
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
2019-05-26 06:42:39 +02:00
from Cython.Build import cythonize
2019-05-26 04:44:27 +02:00
ext_modules = [
Extension("src.database", ["src/database.py"]),
Extension("src.settings", ["src/settings.py"]),
Extension("src.writes", ["src/writes.py"]),
Extension("schema.db_helpers", ["schema/db_helpers.py"]),
2019-05-26 06:42:39 +02:00
] # might need to add some external imports here too
2019-05-26 04:44:27 +02:00
setup(
name="comment_server",
cmdclass={"build_ext": build_ext},
2019-05-26 06:42:39 +02:00
ext_modules=cythonize(ext_modules, compiler_directives={'language_level': '3'})
2019-05-26 04:44:27 +02:00
)