From 5f5ef7deb22b86310aa128dcb71534f6fc9deb08 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 17 Jan 2013 11:57:21 -0500 Subject: Add env var version override for packagers. Fixes bug 1100805. Change-Id: I8c8ba8610ed2d9093e188c1412e9689314560015 --- openstack/common/setup.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openstack') 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 -- cgit