-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcy_build.py
30 lines (25 loc) · 910 Bytes
/
cy_build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from distutils.command.build_ext import build_ext
from Cython.Build import cythonize
from setuptools import setup
# TODO: loop and add each file in .functions
def run_setup() -> None:
setup(
ext_modules=cythonize(
[
".\\functions\\import_grid.py",
".\\functions\\import_stl.py",
".\\functions\\line_generator.py",
".\\functions\\mesh_config.py",
".\\functions\\mesh_parser.py",
".\\functions\\mesh_queue.py",
".\\functions\\mesh_object.py",
".\\functions\\mesh_line.py",
".\\functions\\mesh_stack.py",
".\\functions\\obj_merger.py",
".\\functions\\writer.py",
],
compiler_directives={"language_level": "3"}, # must be 3,
)
)
if __name__ == "__main__":
run_setup()