archlinuxhardened / selinux

PKGBUILDs to build SELinux enabled packages for Arch Linux
146 stars 25 forks source link

Moved python-setuptools from makedepends to depends #43

Closed tqre closed 4 years ago

tqre commented 4 years ago

At least 'seinfo' needs this library. While playing with a minimal system, I got the following error running 'seinfo' if python-setuptools is not installed.

[tqre@pacstrap-selinux:~]$ seinfo
Traceback (most recent call last):
  File "/usr/bin/seinfo", line 21, in <module>
    import setools
  File "/usr/lib/python3.8/site-packages/setools/__init__.py", line 79, in <module>
    from .permmap import PermissionMap
  File "/usr/lib/python3.8/site-packages/setools/permmap.py", line 26, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

After installing python-setuptools, all is well :)

fishilico commented 4 years ago

Thanks! I updated .SRCINFO too and commited your changes as https://github.com/archlinuxhardened/selinux/commit/ccc02813e1e0cd01e9dcdfa8d3802d378a685ea4 (https://aur.archlinux.org/cgit/aur.git/commit/?h=setools&id=ccc02813e1e0cd01e9dcdfa8d3802d378a685ea4 in the AUR)