the latest versions of pbr generate scripts which don't support
multiversion.  to avoid importing modules from older multiversion-aware
installations of ryu, we prefer multiversion-aware scripts.

Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 setup.cfg |  1 +
 setup.py  | 10 +++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/setup.cfg b/setup.cfg
index a3d3329..fd49774 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -43,6 +43,7 @@ doc_files = LICENSE
 
 [global]
 setup-hooks =
+    pbr.hooks.setup_hook
     ryu.hooks.setup_hook
 
 [entry_points]
diff --git a/setup.py b/setup.py
index adf31fa..6df305e 100644
--- a/setup.py
+++ b/setup.py
@@ -16,10 +16,14 @@
 
 import setuptools
 import os
-from ryu import version
 
 
-os.environ["PBR_VERSION"] = str(version)
+# the latest versions of pbr generate scripts which don't support
+# multiversion.  to avoid importing modules from older multiversion-aware
+# installations of ryu, we prefer multiversion-aware scripts.
+PBR_VERSION = '0.5.19'
+
+os.environ["PBR_VERSION"] = PBR_VERSION
 setuptools.setup(name='ryu',
-                 setup_requires=['pbr'],
+                 setup_requires=['pbr==%s' % (PBR_VERSION,)],
                  pbr=True)
-- 
1.8.3.1


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to