Closed aichhorn closed 10 years ago
How did you install cython ?? If you use a virtualenv as in the doc and pip/easy_install it, the executable is next to the python interpreter. So it should be in the path... Can you give me an example ?
I used easyinstall. It puts everything into /usr/local, and not /usr. I don't know why, I did not care because /usr/local/bin is also in my path. cmake does not check the PATH variable but sets the cython_executable to /usr/bin/cython. In principle this is not a problem, one has to give the correct path and everything works. But obviously it can happen that cython and python executables are not in the same location.
It also means that you can call another cython/python than the one currently in use. Maybe we should not call cython directly, but call it from python, but that is painful.
During the cmake configuration step, the path to the cython executable is not checked, just the cython libraries. So you can get 'cython 0.18.xx found' from cmake, but make then fails because cython is not in /usr/bin/ but in /usr/local/bin, which can happen easily.