[SciPy-dev] cmake build system for scipy

David Cournapeau david at ar.media.kyoto-u.ac.jp
Mon Mar 9 00:39:42 EDT 2009


Ondrej Certik wrote:
> Hi,
>
> I started to write cmake build system for scipy, so that it
>
> a) can compile in parallel
> b) compiles on all systems out of the box (currently it fails in
> Debian without patching)
>
> It's in my cmake branch:
>
> http://github.com/certik/scipy/tree/cmake
>
> Currently it only compiles part of the sparsetools, but it works with
> f2py and the templates (.src -> .f), so I am posting it here in case
> anyone would like to take it and finish it.
> Unfortunately I am very busy, so I don't know when I have time to work
> on it more.
>
> Is there some reason why the scipy package cannot be build inplace?
> There are some checks for that:
>
> ImportError: Error importing scipy: you cannot import scipy while
>     being in scipy source directory; please exit the scipy source
>     tree first, and relaunch your python intepreter.
>   

The message is misleading in your case - scipy can be imported in-place,
but you need more than just installing the .so. You need to recreate the
scipy logic which enables the in-place import (I don't remember the
details, but it boils down to installing a few .py files - the scipy
__init__.py should be clear).

cheers,

David



More information about the SciPy-Dev mailing list