pycontribs / selinux

Pure-python selinux shim module for use in virtualenvs
MIT License
20 stars 19 forks source link

selinux package does not support python < 2.7 #41

Closed mnarusze closed 4 years ago

mnarusze commented 4 years ago

I know that this is a corner case but in CentOS 6.10 (still supported till the end of this year or even longer with extended support) python is below 2.7 which means that site.getsitepackages() will not work:

>>> import site
>>> site.getsitepackages()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'getsitepackages'
ssbarnea commented 4 years ago

Good luck upgrading it! I have no plans to touch it. Even CentOS 7 is painful enough to support for the same obsolescence reasons.

Hint: I plan to drop py27 everywhere I can, as soon I can.