Derive SETools version from setuptools pkg_resources.

This commit is contained in:
Chris PeBenito 2014-10-24 21:40:06 -04:00
parent 109ba68a92
commit bf02670cb6
2 changed files with 6 additions and 2 deletions

1
README
View File

@ -44,6 +44,7 @@ To run SETools, the following packages are required:
Python 2.7
sepolgen
NetworkX
setuptools
2.1. building SETools

View File

@ -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