summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2016-01-05 12:52:50 -0800
committerJeff Vander Stoep <jeffv@google.com>2016-01-05 12:53:57 -0800
commitb7cf37e1ea69937faef65477afa6cfcd86437206 (patch)
tree35e3391e085842deea61103824be4dffa99edad9
parentcce9bb102f78943c920cb3e46a1e8eea532a779e (diff)
download2.7.5-b7cf37e1ea69937faef65477afa6cfcd86437206.tar.gz
Add setools version
Addresses the following error: File "/android_source/AOSP/external/selinux/prebuilts/bin/sesearch.py", line 21, in <module> import setools File "/android_source/AOSP/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/__init__.py", line 23, in <module> __version__ = pkg_resources.get_distribution("setools").version File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 344, in get_distribution if isinstance(dist,Requirement): dist = get_provider(dist) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 223, in get_provider return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: setools Change-Id: I69b033416e687d77c5839433542ee21056c6b93b
-rw-r--r--lib/python2.7/site-packages/setools/__init__.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/python2.7/site-packages/setools/__init__.py b/lib/python2.7/site-packages/setools/__init__.py
index 1108706..d86ecdc 100644
--- a/lib/python2.7/site-packages/setools/__init__.py
+++ b/lib/python2.7/site-packages/setools/__init__.py
@@ -17,13 +17,7 @@
# License along with SETools. If not, see
# <http://www.gnu.org/licenses/>.
#
-try:
- import pkg_resources
- # pylint: disable=no-member
- __version__ = pkg_resources.get_distribution("setools").version
-except ImportError: # pragma: no cover
- __version__ = "unknown"
-
+__version__ = "3.3.8"
# Python classes for policy representation
from . import policyrep
from .policyrep import SELinuxPolicy