Create cythonizer.py

This commit is contained in:
Theelgirl 2020-10-13 12:20:00 +00:00 committed by GitHub
parent 5edd2632bb
commit 024543cccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}))