summaryrefslogtreecommitdiffhomepage
path: root/setup.py
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-10-02 11:32:23 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-10-02 11:32:23 +0900
commit94965a3b5b5e53f6eb818080bad9ffe72ae30574 (patch)
treea0da6f4610d2feb68117d530918bae951370987a /setup.py
parent5483d98824c8e1724a73a261ba78100913087721 (diff)
Removed leading '/' from data_files
This was preventing from creating a package on Windows machines where there is no /etc/ folder. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 7f4b53f9..4b12fc34 100644
--- a/setup.py
+++ b/setup.py
@@ -39,6 +39,11 @@ classifiers = [
'Operating System :: Unix',
]
+if sys.platform == 'win32':
+ data_files = [('etc/ryu', ['etc/ryu/ryu.conf'])]
+else:
+ data_files = [('/etc/ryu', ['etc/ryu/ryu.conf'])]
+
setup(name='ryu',
version=version,
description=("Ryu Network Operating System"),
@@ -52,5 +57,5 @@ setup(name='ryu',
packages=find_packages(),
scripts=['bin/ryu-manager',
'bin/ryu-client'],
- data_files=[('/etc/ryu', ['etc/ryu/ryu.conf'])],
+ data_files=data_files,
)