mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 15:06:29 +00:00
rewrite inference and file loading to cython
Step 1: can compile
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
from setuptools import setup, Extension
|
||||
from Cython.Build import cythonize
|
||||
|
||||
extensions = [
|
||||
Extension('main', ['main.pyx']),
|
||||
Extension('api_client', ['api_client.pyx']),
|
||||
Extension('constants', ['constants.pyx']),
|
||||
Extension('hardware_service', ['hardware_service.pyx']),
|
||||
Extension('inference', ['inference.pyx']),
|
||||
Extension('processor_command', ['processor_command.pyx']),
|
||||
Extension('remote_handlers', ['remote_handlers.pyx']),
|
||||
Extension('security', ['security.pyx'])
|
||||
]
|
||||
|
||||
setup(
|
||||
name="azaion.ai",
|
||||
ext_modules=cythonize(
|
||||
extensions,
|
||||
compiler_directives={
|
||||
"language_level": 3,
|
||||
"emit_code_comments" : False,
|
||||
"binding": True
|
||||
},
|
||||
gdb_debug=True
|
||||
),
|
||||
zip_safe=False
|
||||
)
|
||||
Reference in New Issue
Block a user