[Cython] cython python versions
Ondrej Certik
ondrej at certik.cz
Wed Feb 13 18:25:53 CET 2008
Hi Tim,
On Feb 11, 2008 6:09 AM, Tim Abbott <tabbott at mit.edu> wrote:
> 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.
Thanks very much for tracing the problem down. One option is that we simply add
a patch to the Debian package to rewrite /usr/bin/python back to
/usr/bin/env python.
I can do this when uploading a new version of cython.
> 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.
So what is the solution to fix this? Fixing the cython's setup.py? Let's do that
in the next release then.
Fixing the Debian is just a temporary solution, so that we have it working now.
Ondrej
More information about the Cython-dev
mailing list