Re: [Cython] CmdLine.py refactoring

2011-08-09 Thread Stefan Behnel
Stefano, 09.08.2011 12:13: Tuesday 9th August 2011 10:15:14, Stefan Behnel wrote: However, I also see the problem that optparse is deprecated and may get removed in a future 3.x version. So, switching to optparse now means that we may have to switch to something else later, whereas that's not th

Re: [Cython] CmdLine.py refactoring

2011-08-09 Thread Stefano
Tuesday 9th August 2011 10:15:14, Stefan Behnel wrote: > However, I also see the problem that optparse is deprecated and may get > removed in a future 3.x version. So, switching to optparse now means that > we may have to switch to something else later, whereas that's not the case > with the cur

Re: [Cython] CmdLine.py refactoring

2011-08-09 Thread Stefan Behnel
Dag Sverre Seljebotn, 09.08.2011 08:51: On 08/09/2011 08:33 AM, Stefan Behnel wrote: Stefano, 08.08.2011 22:36: As a proof of its quality, Fedora, Ubuntu and SuSe all ship a python-argparse package for older versions of python (<2.7). Given that the module is self- contained and as small as 80K

Re: [Cython] CmdLine.py refactoring

2011-08-08 Thread Dag Sverre Seljebotn
On 08/09/2011 08:33 AM, Stefan Behnel wrote: Stefano, 08.08.2011 22:36: As a proof of its quality, Fedora, Ubuntu and SuSe all ship a python-argparse package for older versions of python (<2.7). Given that the module is self- contained and as small as 80KB, wouldn't be feasible to add it as a bu

Re: [Cython] CmdLine.py refactoring

2011-08-08 Thread Vitja Makarov
2011/8/9 Stefan Behnel : > Stefano, 08.08.2011 22:36: >> >> As a proof of its quality, Fedora, Ubuntu and SuSe all ship a >> python-argparse >> package for older versions of python (<2.7). Given that the module is >> self- >> contained and as small as 80KB, wouldn't be feasible to add it as a build

Re: [Cython] CmdLine.py refactoring

2011-08-08 Thread Stefan Behnel
Stefano, 08.08.2011 22:36: As a proof of its quality, Fedora, Ubuntu and SuSe all ship a python-argparse package for older versions of python (<2.7). Given that the module is self- contained and as small as 80KB, wouldn't be feasible to add it as a build dependency? Note that that's huge compar

Re: [Cython] CmdLine.py refactoring

2011-08-08 Thread Stefano
Sunday 7th August 2011 16:21:06, Stefan Behnel wrote: > argparse is new and not supported by anything but 2.7 and recent 3.x > versions. Cython currently runs on Python 2.4, which rules out a dependency > on argparse. I never tried it, so I can't tell what exactly the advantages > over optparse are

Re: [Cython] CmdLine.py refactoring

2011-08-07 Thread Stefano
Sunday 7th August 2011 16:21:06, Stefan Behnel wrote: > Will you put it up somewhere on github? Here's my branch for command line refactoring. There's still nothing interesting on, but changes will be pushed soon. https://github.com/satufk/cython/tree/_commandline > I'm also not sure how well t

Re: [Cython] CmdLine.py refactoring

2011-08-07 Thread Stefan Behnel
Stefano, 07.08.2011 14:06: I've cloned GitHub repo and started working on it. Will you put it up somewhere on github? First, I'm rewriting Compiler/CmdLine.py to use the optparse/argparse module. That would help in keeping the command line help messages up to date with the actually suppor