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

Artem Bityutskiy dedekind1 at gmail.com
Fri Aug 1 04:54:14 PDT 2014

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...
> 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.

Best Regards,
Artem Bityutskiy

More information about the aiaiai mailing list