mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-11 07:18:15 +00:00
Derive SETools version from setuptools pkg_resources.
This commit is contained in:
parent
109ba68a92
commit
bf02670cb6
1
README
1
README
@ -44,6 +44,7 @@ To run SETools, the following packages are required:
|
||||
Python 2.7
|
||||
sepolgen
|
||||
NetworkX
|
||||
setuptools
|
||||
|
||||
|
||||
2.1. building SETools
|
||||
|
@ -17,8 +17,11 @@
|
||||
# License along with SETools. If not, see
|
||||
# <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
__version__ = "4.0.0-alpha"
|
||||
try:
|
||||
import pkg_resources
|
||||
__version__ = pkg_resources.get_distribution("setools").version
|
||||
except:
|
||||
__version__ = "unknown"
|
||||
|
||||
# Python classes for policy representation
|
||||
import policyrep
|
||||
|
Loading…
Reference in New Issue
Block a user