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/yas...
cboltz's branch:
https://build.opensuse.org/package/show/home:cboltz:branches:YaST:Head/yast2...
Regards,
Kshitij Gupta
On Thu, Jul 4, 2013 at 2:10 AM, Kshitij Gupta
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: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org