On Sun, 30 Sep 2012 21:43:56 +0900 (JST)
FUJITA Tomonori <[email protected]> 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?
> 
> 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,
>        )

Applied.

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to