Go to file
Petr Lautrbach 5d8ec18db0 Use Python distutils to install SELinux python bindings
SWIG-4.0 changed its behavior so that it uses: from . import _selinux  which
looks for _selinux module in the same directory as where __init__.py is -
$(PYLIBDIR)/site-packages/selinux. But _selinux module is installed into
$(PYLIBDIR)/site-packages/ since a9604c30a5e2f ("libselinux: Change the location
of _selinux.so").

In order to prevent such breakage in future use Python's distutils instead of
building and installing python bindings manually in Makefile.

Fixes:
>>> import selinux
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.7/site-packages/selinux/__init__.py", line 13, in <module>
    from . import _selinux
ImportError: cannot import name '_selinux' from 'selinux' (/usr/lib64/python3.7/site-packages/selinux/__init__.py)
>>>

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2019-05-22 12:47:32 +02:00
tests Remove explicit requires from tests.yml 2018-10-08 13:01:00 +02:00
.gitignore SELinux userspace 2.9 release 2019-03-18 16:56:53 +01:00
0001-Fix-selinux-man-page-to-refer-seinfo-and-sesearch-to.patch Use separate patches instead of one big fedora-selinux.patch 2019-05-09 17:27:26 +02:00
0002-Verify-context-input-to-funtions-to-make-sure-the-co.patch Use separate patches instead of one big fedora-selinux.patch 2019-05-09 17:27:26 +02:00
0003-libselinux-Allow-to-override-OVERRIDE_GETTID-from-co.patch Use separate patches instead of one big fedora-selinux.patch 2019-05-09 17:27:26 +02:00
0004-libselinux-Use-Python-distutils-to-install-SELinux-p.patch Use Python distutils to install SELinux python bindings 2019-05-22 12:47:32 +02:00
libselinux.spec Use Python distutils to install SELinux python bindings 2019-05-22 12:47:32 +02:00
rubytest.rb - Update to Upstream 2008-07-29 13:22:45 +00:00
selinuxconlist.8 Apply patch from eparis to fix leaked file descriptor in new labeling code 2012-11-05 11:54:39 -05:00
selinuxdefcon.8 Apply patch from eparis to fix leaked file descriptor in new labeling code 2012-11-05 11:54:39 -05:00
sources SELinux userspace 2.9 release 2019-03-18 16:56:53 +01:00
STAGE1-libselinux Adding STAGE1 bootstrap recipe 2015-06-10 21:21:28 +02:00