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>
This commit is contained in:
FUJITA Tomonori 2012-10-02 11:32:23 +09:00
parent 5483d98824
commit 94965a3b5b

View File

@ -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,
)