TRIQS / triqs_0.x

DEPRECATED -- This is the repository of the older versions of TRIQS
Other
11 stars 9 forks source link

cython detection problem #125

Closed aichhorn closed 10 years ago

aichhorn commented 11 years ago

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.

parcollet commented 11 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 ?

aichhorn commented 11 years ago

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.

parcollet commented 11 years ago

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.