I am trying to compile a simple test.pyx file. To do this I made setup.py as follows:
from setuptools import setup
from Cython.Build import cythonize
setup(
compiler_directives={'language_level' : "3"},
extra_compile_args=['-Ofast', '-march=native'],
ext_modules = cythonize("test.pyx")
)
I get the warnings:
UserWarning: Unknown distribution option: 'compiler_directives'
warnings.warn(msg)
Unknown distribution option: 'extra_compile_args'
warnings.warn(msg)
How should I have done this?
I am using Cython version 0.29.35 .