Hi Kshitij,
at first congratulation to look at our python bindings. I expect that
you see there a lot of sharp edges. In fact, now there is no maintainer
for python bindings, so if you want to take care of it, I would welcome
it. I can help you with understanding how it works from liby2 side ( y2
is component system to which is bindings attached ). I recommend you to
look at ruby bindings[1] that is now complete to cooperate with rest of
component system ( so ycp, perl or python modules ).
Project is available at github [2] and after few good commit (it is not
maintained, but we want to keep some basic code quality ) I think you
can get push rights.

Thanks
Josef

[1] https://github.com/yast/yast-ruby-bindings
[2] https://github.com/yast/yast-python-bindings

On Thu, 11 Jul 2013 22:48:44 +0530
Kshitij Gupta <[email protected]> wrote:

> Hello,
> 
> I spent some trying to figure out a way to port the bindings to
> Python3. I patched some config files (which I forked from cboltz's
> branch) to build the bindings with Python3. Then I realised that the
> C++ code needs to be modified too to match the Python3 C API. I found
> the following site, which guides on migrating code to Python:
> 
> http://python3porting.com/cextensions.html
> 
> Maybe somebody more familiar with the code-base can make the code
> compatible with both Python2 and 3 with some effort.
> Hope that might be helpful.
> 
> My branch:
> https://build.opensuse.org/package/show/home:kshitij8:branches:YaST:Head/yast2-python-bindings
> 
> cboltz's branch:
> https://build.opensuse.org/package/show/home:cboltz:branches:YaST:Head/yast2-python-bindings
> 
> Regards,
> 
> Kshitij Gupta
> 
> On Thu, Jul 4, 2013 at 2:10 AM, Kshitij Gupta <[email protected]>
> wrote:
> > Hello everyone,
> >
> > I am Kshitij and I'm working on Profile Tools for AppArmor using
> > Python3 under Google Summer of Code'13.
> >
> > This may have been asked before, but I tried searching on the net
> > and asking on the IRC channel too but could not find an answer.
> >
> > The present tools (in Perl) have a YaST interface besides the CLI,
> > as I'm re-writing them in Python3 (Python 3.3 to be precise) and a
> > few additional tools I also have to interface with YaST. I was able
> > to find yast2-bindings for python but they are for Python2.7, but
> > not for Python3.
> >
> > I would be very grateful if somebody can help me in this regard.
> >
> > Regards,
> >
> > Kshitij Gupta

-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to