diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-10-02 11:32:23 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-10-02 11:32:23 +0900 |
commit | 94965a3b5b5e53f6eb818080bad9ffe72ae30574 (patch) | |
tree | a0da6f4610d2feb68117d530918bae951370987a /setup.py | |
parent | 5483d98824c8e1724a73a261ba78100913087721 (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.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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, ) |