[Cython] cython python versions

Robert Bradshaw robertwb at math.washington.edu
Sun Mar 30 12:04:58 CEST 2008


On Feb 13, 2008, at 9:39 AM, Tim Abbott wrote:
> 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.
>

Was this issue resolved? I am planning on doing another release soon.

- Robert


More information about the Cython-dev mailing list