You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libselinux,libsemanage: Replace PYSITEDIR with PYTHONLIBDIR
libselinux and libsemanage Makefiles use site.getsitepackages() in order
to get the path to /usr/lib/pythonX.Y/site-packages relevant to the
Python interpreter selected with $(PYTHON). This method is incompatible
with Python virtual environments, as described in
pypa/virtualenv#355 (comment)
which has been opened for more than 5 years.
On the contrary python/semanage and python/sepolgen Makefiles use
distutils.sysconfig.get_python_lib() in order to get the site-packages
path into a variable named PYTHONLIBDIR. This way of computing
PYTHONLIBDIR is compatible with virtual environments and gives the same
result as PYSITEDIR.
As PYTHONLIBDIR works in more cases than PYSITEDIR, make libselinux and
libsemanage Makefiles use it.
Signed-off-by: Nicolas Iooss <[email protected]>
0 commit comments