summaryrefslogtreecommitdiff
path: root/novaclient/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/__init__.py')
-rw-r--r--novaclient/__init__.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/novaclient/__init__.py b/novaclient/__init__.py
index dc9ab76d..bfa75532 100644
--- a/novaclient/__init__.py
+++ b/novaclient/__init__.py
@@ -12,12 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-from novaclient.openstack.common import version
+import pbr.version
-version_info = version.VersionInfo('python-novaclient')
-# We have a circular import problem when we first run python setup.py sdist
-# It's harmless, so deflect it.
-try:
- __version__ = version_info.version_string()
-except AttributeError:
- __version__ = None
+
+__version__ = pbr.version.VersionInfo('python-novaclient').version_string()