Re: Userspace Python version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 9, 2017 at 1:18 AM, Chris PeBenito <pebenito@xxxxxxxx> wrote:
> I believe that all major SELinux distributions have at least Python 3.4
> support.  Python 3 changeover has gone so long that even 3.3 is about to go
> end-of-life [1].  Can we officially drop Python 2.7 support in userspace
> code?
>
> I'd like to drop support for everything older than Python 3.4 in SETools.
>
> [1]
> http://blog.python.org/2017/09/python-337rc1-is-now-available-prior-to.html

When I updated the Arch Linux packages for the last release, I tried
to use Python 3 everywhere and there was one component which required
Python 2: selinux-gui [1], because PyGtk is not compatible with Python
3. After a quick search I found https://askubuntu.com/a/97107 : "PyGTK
has been deprecated in favor of PyGI+GTK. Because of that, a version
of PyGTK for Python 3 was never written."

I will try to port selinux-gui to PyGI [2] in order to reduce the
dependency towards Python 2. Before I start this work, are there
already other people working on this? More precisely there have been
some patches/commits related to this, like 9a57996dfa9a ("sandbox: Use
GObject introspection binding instead of pygtk2") and 917f398d7cd2
("policycoreutils: Use GObject introspection binding instead of
python-gobject in selinux_server.py") and I am wondering whether their
authors also looked at selinux-gui (and command
system-config-selinux).

Cheers,
Nicolas

[1] directory gui/ of https://github.com/SELinuxProject/selinux
[2] with ideas from
https://wiki.gnome.org/action/show/Projects/PyGObject/IntrospectionPorting




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux