The hook raises an AttributeError exception on Windows because of recent changes in the pbr project. This fix solves the issue.
This is adapted from https://review.openstack.org/#/c/42170/ Since ryu didn't depend on pyudev, I think it no longer needs a removal here. Signed-off-by: Wei-Li Tang <[email protected]> --- ryu/hooks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ryu/hooks.py b/ryu/hooks.py index 6d8cf9a..dcb5cc9 100644 --- a/ryu/hooks.py +++ b/ryu/hooks.py @@ -40,10 +40,9 @@ def setup_hook(config): """Filter config parsed from a setup.cfg to inject our defaults.""" metadata = config['metadata'] if sys.platform == 'win32': - requires = metadata.get('requires_dist', list()).split('\n') + requires = metadata.get('requires_dist', '').split('\n') requires.append('pywin32') requires.append('wmi') - requires.remove('pyudev') metadata['requires_dist'] = "\n".join(requires) config['metadata'] = metadata -- 1.7.9.5 ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
