[Cython] dynamically compile and import pure python modules

Stefan Behnel stefan_ml at behnel.de
Sat Apr 28 19:55:33 CEST 2012

mark florisson, 27.04.2012 22:38:
> On 27 April 2012 21:16, Stefan Behnel wrote:
>> What about this deal: we remove the hard bootstrap dependency on the fused
>> types code (and maybe other Cython specific features) and require its
>> compilation at install time in Py2.4 (and maybe even 2.5). That would allow
>> us to use newer Python syntax (and even Cython supported syntax) there
>> (except for fused types, obviously). Failure to compile the module in
>> Python 2.4/5 at install time would then abort the installation. Bad luck
>> for the user, but easy to fix by installing a newer Python version.
>> That would give us the advantage of not needing to pollute user home
>> directories with shared libraries at runtime (which I would consider a very
>> annoying property).
> I think it's fine to require compiling in the installed case (or will
> that be a problem for some package managers?). In the non-installed
> case with python versions smaller than needed, would you prefer a
> pyximport or an error message telling you to install Cython? Because
> for development you really don't want to install every time.

I think it's fine to require at least Python 2.6 for Cython core
development. Just the installation (basically, what we test in Jenkins
anyway) should work in Py2.4 and shouldn't require any rebuilds at runtime.


More information about the cython-devel mailing list