[Cython] cython python versions

Tim Abbott tabbott at MIT.EDU
Wed Feb 13 18:39:29 CET 2008


On Wed, 13 Feb 2008, Ondrej Certik wrote:

> 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.

I think that's the right solution.

 	-Tim Abbott


More information about the Cython-dev mailing list