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:
parent
5483d98824
commit
94965a3b5b
7
setup.py
7
setup.py
@ -39,6 +39,11 @@ classifiers = [
|
|||||||
'Operating System :: Unix',
|
'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',
|
setup(name='ryu',
|
||||||
version=version,
|
version=version,
|
||||||
description=("Ryu Network Operating System"),
|
description=("Ryu Network Operating System"),
|
||||||
@ -52,5 +57,5 @@ setup(name='ryu',
|
|||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
scripts=['bin/ryu-manager',
|
scripts=['bin/ryu-manager',
|
||||||
'bin/ryu-client'],
|
'bin/ryu-client'],
|
||||||
data_files=[('/etc/ryu', ['etc/ryu/ryu.conf'])],
|
data_files=data_files,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user