[Cython] Fwd: [sage-devel] cython installation with python 2.3

Michael Abshoff mabshoff at googlemail.com
Fri Jul 18 09:51:57 CEST 2008


Hi,

this was not answered on sage-devel, but I assume you guys would want to
look into this. IIRC numpy/scipy is still supported on Python 2.3, so this
would likely come up sooner or later.

Cheers,

Michael

---------- Forwarded message ----------
From: Utpal Sarkar <doetoe at gmail.com>
Date: Tue, Jul 15, 2008 at 8:09 AM
Subject: [sage-devel] cython installation with python 2.3
To: sage-devel <sage-devel at googlegroups.com>



Hi,

I'm not sure this is the correct place to post this.
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.

Greetings,

Utpal

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel at googlegroups.com
To unsubscribe from this group, send email to
sage-devel-unsubscribe at googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/cython-dev/attachments/20080718/b3be15ae/attachment.htm 


More information about the Cython-dev mailing list