summaryrefslogtreecommitdiff
path: root/lib/spack/external/altgraph/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/external/altgraph/__init__.py')
-rw-r--r--lib/spack/external/altgraph/__init__.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/spack/external/altgraph/__init__.py b/lib/spack/external/altgraph/__init__.py
index ee70a9c91b..a56342438b 100644
--- a/lib/spack/external/altgraph/__init__.py
+++ b/lib/spack/external/altgraph/__init__.py
@@ -1,4 +1,4 @@
-'''
+"""
altgraph - a python graph library
=================================
@@ -138,13 +138,11 @@ To display the graph we can use the GraphViz backend::
@newfield contributor: Contributors:
@contributor: U{Reka Albert <http://www.phys.psu.edu/~ralbert/>}
-'''
-# import pkg_resources
-# __version__ = pkg_resources.require('altgraph')[0].version
-# pkg_resources is not finding the altgraph import despite the fact that it is in sys.path
-# there is no .dist-info or .egg-info for pkg_resources to query the version from
-# so it must be set manually
-__version__ = '0.16.1'
+"""
+import pkg_resources
+
+__version__ = pkg_resources.require("altgraph")[0].version
+
class GraphError(ValueError):
pass