[Cython] cython python versions

Tim Abbott tabbott at MIT.EDU
Mon Feb 11 06:09:39 CET 2008


Hello,

If you use python-distutils to install cython, it ends up replacing the #! 
line at the start of bin/cython (#!/usr/bin/env python) with a more 
specific version, i.e. (#!/usr/bin/python or #!/usr/bin/python2.x).  I 
assume this is undesirable; it caused problems for me building SAGE on 
Debian Lenny.

Search for "adjust" in 
/usr/lib/python2.5/distutils/command/build_scripts.py if you want to see 
the code that does this rewriting; it seems to be controlled by whether 
cython is registered as a script in setup.py.

 	-Tim Abbott


More information about the Cython-dev mailing list