From 94965a3b5b5e53f6eb818080bad9ffe72ae30574 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 2 Oct 2012 11:32:23 +0900 Subject: 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 --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'setup.py') 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, ) -- cgit v1.2.3