On Sun, Sep 30, 2012 at 09:43:56PM +0900, FUJITA Tomonori wrote:
> 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?

Yeah. I'm not sure which is better to check == 'win32'
or == 'linux2', though.

thanks,

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

-- 
yamahata

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to