~harlowja/cloud-init/cloud-init-dynamic-distro-check

Viewing all changes in revision 1257.

  • Committer: Joshua Harlow
  • Date: 2016-07-19 00:00:56 UTC
  • mfrom: (1253.1.1 cloud-init)
  • Revision ID: harlowja@gmail.com-20160719000056-y8nqnuwco7issrbh
Avoid depending on argparse in 2.7 or greater

At least (currently) for rhel7 the argparse package does
not get installed (even though rpm say it is installed by
the python core package) and this causes things that mention
argparse in there requirements to not believe that argparse
is installed (even though it is) so to avoid this whole mess
we can just avoid depending on argparse in python versions
where we don't need to (since it was included in the stdlib
in python 2.7+)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: