* torbenh <torb...@gmx.de> [2011-01-06 16:03:23]:

> On Thu, Jan 06, 2011 at 05:58:10PM +0530, Balbir Singh wrote:
> > * torbenh <torb...@gmx.de> [2011-01-06 12:13:00]:
> > 
> > > On Thu, Jan 06, 2011 at 02:10:24PM +0530, Balbir Singh wrote:
> > > > * Balbir Singh <bal...@linux.vnet.ibm.com> [2011-01-02 15:33:32]:
> > > > 
> > > > > The added bindings depend on swig and hence are disabled by
> > > > > default. If you know what you are doing, enable the bindings
> > > > > for python. To test the bindings, ensure _libcgroup.so
> > > > > is copied in the same directory as libcgroup.py. There after
> > > > > libcgroup API's can be invoked from python.
> > > > > 
> > > > > Please use --enable-bindings after installing swig to compile
> > > > > with the changes
> > > > > 
> > > > > Signed-off-by: Balbir Singh <bal...@linux.vnet.ibm.com>
> > > > 
> > > > Would there be major objections to inclusion of this patch.
> > > > The patches come with a WARNING
> > > > 
> > > > No API stability at the moment for the python bindings - it is
> > > > still experimental and needs to be worked out.
> > > 
> > > i am not sure, why you used swig.
> > > did you consider using ctypes ? you can write pure python bindings with
> > > it. has the advantage, that you basically only distribute a python file.
> > > no python build dep.
> > >
> > 
> > I chose swig because of the reason you mentioned below, I tried simple
> > Java binding as well and it worked well. Mostly for bindings across
> > languages. I hope that makes sense.
> 
> of course it makes sense. 
> i still think that bindings should be a separate package, at least for
> distro packages, they generally are.
> 
> if you want to have the bindings in the libcg tarball, you should
> probably add some configure option to only build the binding...
> 
> this would help packagers to build several distro packages out of the
> tarball.
>

I think it is quite easy, build the whole thing and package it the
output as desired. We do that for fedora (see the .spec). One should
be able to do a selective build using cd src/bindings and running
make.

-- 
        Three Cheers,
        Balbir

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to