summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWei-Li Tang <alextwl@xinguard.com>2014-01-05 20:20:13 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-01-06 20:32:05 +0900
commit1753c1e8d97e74a9c1f9ff7b6e375ce2981b44ce (patch)
tree70ccfe14ccf6ce094b9077329d40e6cb51223de5
parentffc1f82554aa64a7e14c49e9c8aad80634319825 (diff)
Fix Windows setup dependency bug
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 <alextwl@xinguard.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/hooks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ryu/hooks.py b/ryu/hooks.py
index 6d8cf9ae..dcb5cc90 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