On Thu, 25 Jul 2013 12:41:49 +0900
Satoshi Kobayashi <[email protected]> wrote:

> Hi all,
> 
> I tried to work Ryu by CentOS 6.4 which has Python 2.6.6 by default. Since
> there was no argparse, it did not launch. IMHO, if Ryu supports
> Python2.6.X, the following patches are required.
> 
> ----------8<----------8<----------
> diff --git a/setup.py b/setup.py
> index 55c2660..1825984 100644
> --- a/setup.py
> +++ b/setup.py
> @@ -24,6 +24,12 @@ from ryu import utils
> 
>  requires = utils.parse_requirements()
> 
> +try:
> +    import argparse
> +except ImportError:
> +    # for Python 2.6 or before
> +    requires.append('argparse')
> +
>  doing_bdist = any(arg.startswith('bdist') for arg in sys.argv[1:])
> 
>  long_description = open('README.rst').read() + '\n\n'
> ---------->8---------->8----------

I think that we already have a trick in parse_requirements in utils.py
for this. Simply adding 'argparse' doesn't work?

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to