Desidero passare alcune opzioni aggiuntive al compilatore Cython
utilizzando extra_compile_args
.extra_compile_args in Cython
mio setup.py
:
from distutils.core import setup
from Cython.Build import cythonize
setup(
name = 'Test app',
ext_modules = cythonize("test.pyx", language="c++", extra_compile_args=["-O3"]),
)
Tuttavia, quando corro python setup.py build_ext --inplace
, ottengo il seguente avviso:
UserWarning: got unknown compilation option, please remove: extra_compile_args
Domanda: Come si fa a uso extra_compile_args
correttamente?
Io uso Cython 0.23.4
sotto Ubuntu 14.04.3
.
Questo approccio non sembra rispettare '--inplace'. Guarda la mia soluzione. – Nick