On Thu, 27 Sep 2012 17:30:14 +0900
Isaku Yamahata <[email protected]> wrote:
> 61e3df2a9c638b87bdba182b5ff49f62419f5d7e intentionally added '/'.
Oops, I wrote the above patch and completely forgot it.
> check if sys.platform == 'win32' ?
> On my environment it's 'linux2'.
Something like this?
diff --git a/setup.py b/setup.py
index 7f4b53f..4b12fc3 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,
)
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel