<div dir="ltr">Hi,<br><br>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.<br><br>Cheers,<br>
<br>Michael<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Utpal Sarkar</b> <<a href="mailto:doetoe@gmail.com">doetoe@gmail.com</a>><br>Date: Tue, Jul 15, 2008 at 8:09 AM<br>
Subject: [sage-devel] cython installation with python 2.3<br>To: sage-devel <<a href="mailto:sage-devel@googlegroups.com">sage-devel@googlegroups.com</a>><br><br><br><br>
Hi,<br>
<br>
I'm not sure this is the correct place to post this.<br>
I just installed cython 0.9.8 on my computer, which runs python 2.3. I<br>
got two error that could be fixed quite easily, and which may have to<br>
do with the fact that my python is quite old.<br>
The first is in the file Cython/Compiler/TreeFragment.py, which in<br>
line 136 reads<br>
minindent = min(len(INDENT_RE.match(x).group(0)) for x in lines), but<br>
for my version of python has to be changed to<br>
minindent = min([len(INDENT_RE.match(x).group(0)) for x in lines])<br>
(explicit list comprehension). This should also work in newer versions<br>
of python.<br>
The other is in setup.py, where lines 15-16 are<br>
setup_args['data_files'] = [<br>
{compiler_dir, ['Cython/Compiler/Lexicon.pickle']}]<br>
which I changed to<br>
setup_args['data_files'] = [<br>
(compiler_dir, ['Cython/Compiler/Lexicon.pickle'])]<br>
because I saw that (my installed version of) distutils expected a<br>
tuple, not a dictionary. I don't know if this would still work with<br>
later or other versions of distutils.<br>
<br>
Greetings,<br>
<br>
Utpal<br>
<br>
--~--~---------~--~----~------------~-------~--~----~<br>
To post to this group, send email to <a href="mailto:sage-devel@googlegroups.com">sage-devel@googlegroups.com</a><br>
To unsubscribe from this group, send email to <a href="mailto:sage-devel-unsubscribe@googlegroups.com">sage-devel-unsubscribe@googlegroups.com</a><br>
For more options, visit this group at <a href="http://groups.google.com/group/sage-devel" target="_blank">http://groups.google.com/group/sage-devel</a><br>
URLs: <a href="http://www.sagemath.org" target="_blank">http://www.sagemath.org</a><br>
-~----------~----~----~----~------~----~------~--~---<br>
<br>
</div><br></div>