When one runs the following code:
git clone https://github.com/cython/cython.git
sudo python setup.py install
cython (Cython==0.24
) is compiled with the default compilation arguments. Apparently, it used to be that one could add:
extra_compile_args=["-O3"]
to the setup.py
file and control this. But I just tried it (by putting that line right below:
import platform
is_cpython = platform.python_implementation() == 'CPython'
) and when I do
sudo python setup.py install
all the files are still compiled with the dreaded -O2
flag. How to fix this?
(I'm using linux)