[Kst] cmake for pykst

Peter Kümmel syntheticpp at gmx.net
Wed Nov 16 20:29:00 UTC 2011


On 16.11.2011 18:14, Barth Netterfield wrote:
> cmake for pykst is really cool!  I love the auto down-load/install for
> numpy and scipy!
>
> Some comments:
> It doesn't seem to check to see if you already have numpy/scipy
> installed.  Can/should we do that check?
>
> Do people think that pykst should be installed with kst, or should it
> be a separate package?
>
> I was also a little surprised by how it worked.
>
> By analogy to what kst does, I expected
>    [pykst_build$] cmake ../cmake/pykst
> to create pykstpp_h.py and put it (and maybe the other source files)
> in a subdir (./src?)
>
> I don't know what to expect from
>    [pykst_build$] make
>
> I expected
>    [pykst_build$] sudo make install
> to copy all of the py files to the correct python directory
>
> I think that installing the dependencies maybe should be done by
>    [pykst_build$] sudo make deps
> or something like that, rather than make.  Or is it already a cmake
> option? (download 3rd party)?

With the out-of-the-box cmake command 'ExternalProject_Add' the libs
are in /user/local/lib/phthon2.7/... after building and implicit
installing (without sudo). This way it is possible to call cmake
without sudo, build without sudo, and then install with sudo our
.py files into /usr/lib/python.

So, is this an option for the INSTALL file:

"With CMake: will download, build, and install the right versions
of numpy and scipy if they are not on your system:

     - 'cmake ../kst/cmake -Dkst_python=1'
     - make
     - sudo make install"


>
> But I really don't know.  Can the packagers (Steve?  Matt?) comment on this?
>


More information about the Kst mailing list