Create cythonizer.py

This commit is contained in:
Theelgirl 2020-10-13 12:20:00 +00:00 committed by GitHub
parent f3ee6b0355
commit e2ba62e976
1 changed files with 6 additions and 0 deletions

6
fvid/cythonizer.py Normal file
View File

@ -0,0 +1,6 @@
#cython: language_level = 3
from distutils.core import Extension, setup
from Cython.Build import cythonize
ext = Extension(name="fvid_cython", sources=["fvid_cython.pyx"])
setup(ext_modules=cythonize(ext, compiler_directives={'language_level': 3, 'infer_types': True}))