On Jul 15, 8:09 am, Utpal Sarkar <[EMAIL PROTECTED]> wrote:
> Hi,
Hi Utpal,
> I'm not sure this is the correct place to post this.
There are enough Cython developers around so that your post will
probably be answered here. For future references: The cython mailing
list is at
http://codespeak.net/mailman/listinfo/cython-dev
IIRC Cython does support Python 2.3 and later, so I am sure your bug
fixes are appreciated.
> I just installed cython 0.9.8 on my computer, which runs python 2.3. I
> got two error that could be fixed quite easily, and which may have to
> do with the fact that my python is quite old.
> The first is in the file Cython/Compiler/TreeFragment.py, which in
> line 136 reads
> minindent = min(len(INDENT_RE.match(x).group(0)) for x in lines), but
> for my version of python has to be changed to
> minindent = min([len(INDENT_RE.match(x).group(0)) for x in lines])
> (explicit list comprehension). This should also work in newer versions
> of python.
> The other is in setup.py, where lines 15-16 are
> setup_args['data_files'] = [
> {compiler_dir, ['Cython/Compiler/Lexicon.pickle']}]
> which I changed to
> setup_args['data_files'] = [
> (compiler_dir, ['Cython/Compiler/Lexicon.pickle'])]
> because I saw that (my installed version of) distutils expected a
> tuple, not a dictionary. I don't know if this would still work with
> later or other versions of distutils.
If no one pipes up you can also open tickets at the Cython bug tracker
at
http://trac.cython.org/cython_trac
> Greetings,
>
> Utpal
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---