I just did a test install in 2.4, and it works fine.  It throws SyntaxErrors during setup, but the install still completes and regular IPython works fine.  I get the SyntaxErrors again (in kernel.config) if I try to import kernel.client, but it's certainly not a widespread problem.  Only kernel/config and kernel/contexts seem to have the issue, which should be easy to remedy.<br>
<br>-MinRK<br><br><div class="gmail_quote">On Thu, Jun 12, 2008 at 1:34 PM, Robert Kern <<a href="mailto:robert.kern@gmail.com">robert.kern@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Fernando Perez wrote:<br>
<br>
> I think we'll have to be OK with 2.4 as a dependency for versions >=<br>
> 0.9, but 2.5 is definitely a little harsh.  I *really* want those cool<br>
> context managers in there, the idea is too cool not to put it  in.<br>
<br>
</div>You can define the context managers all you like as long as you don't use them<br>
in the library code itself. As far as I can tell, the only place you actually<br>
use a with statement is in the demo code at the bottom of context.py which, as<br>
noted in the comments, really ought to be moved into a real test suite.<br>
<div class="Ih2E3d"><br>
> But we need them to be optional.  The trick is to exclude them from<br>
> the build process if the  setup.py file is processed with python2.4,<br>
> since they simply won't compile at all (the with statement is a syntax<br>
> error).<br>
<br>
</div>I have seen this give warnings, but I don't think it stops the build, usually.<br>
<font color="#888888"><br>
--<br>
Robert Kern<br>
<br>
"I have come to believe that the whole world is an enigma, a harmless enigma<br>
  that is made terrible by our own mad attempt to interpret it as though it had<br>
  an underlying truth."<br>
   -- Umberto Eco<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br>