[RFC] helpers: specify Python 2.7, not just any python2

Brian Norris computersforpeace at gmail.com
Mon Aug 4 15:10:10 PDT 2014


On Fri, Aug 01, 2014 at 02:54:14PM +0300, Artem Bityutskiy wrote:
> On Fri, 2014-08-01 at 12:35 +0300, Artem Bityutskiy wrote:
> > On Fri, 2014-08-01 at 00:51 -0700, Brian Norris wrote:
> > > The 'argparse' package is new in 2.7. Some installations (e.g., RHEL 6)
> > > still have a default python2 of Python 2.6, but can optionally install
> > > 2.7.
> > > 
> > > Signed-off-by: Brian Norris <computersforpeace at gmail.com>
> > 
> > Well, binding to a so specific version is not very elegant...

Yeah. No problem if you don't want this patch.

> > In centOS, argparse is back-ported to python 2.6, and it lives in a
> > separate package called python-argparse, AFAIK. I suspect it is also
> > back-ported to RHEL6's python 2.6, did you search for it?
> > 
> > Here:
> > 
> > http://stackoverflow.com/questions/19804959/wheres-python-argparse-package-in-rhel
> > 
> > they suggest to bring argparse via pip, which is in my opinion a good
> > enough way. I often bring something useful from PyPI, because not all
> > the cool and widely-used Python stuff is packaged in distributions.
> 
> In case you did not use pip, in Fedora I do something like:
> 
> $ yum install python-pip
> $ pip install python-argparse
> 
> This will first install pip itself, then run pip which will download
> python-argparse from PyPI and install it in your system.

Thanks for the tips. I'll figure it out one way or the other.

Brian



More information about the aiaiai mailing list