summaryrefslogtreecommitdiffstats
path: root/openstack/common/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/setup.py')
-rw-r--r--openstack/common/setup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/openstack/common/setup.py b/openstack/common/setup.py
index 7267a6a..c1db232 100644
--- a/openstack/common/setup.py
+++ b/openstack/common/setup.py
@@ -293,6 +293,9 @@ def get_version(package_name):
to make a source tarball from a fork of our repo with additional tags in it
that they understand and desire the results of doing that.
"""
+ version = os.environ.get("OSLO_PACKAGE_VERSION", None)
+ if version:
+ return version
version = get_version_from_pkg_info(package_name)
if version:
return version