From 35b902c05711c8637999ad3fb72d5e04aae36dad Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 15 Jul 2016 11:48:25 -0700 Subject: Avoid depending on argparse in 2.7 or greater Its not needed since its a built-in for these versions so we can just skip it for any newer rpm building in the first place. LP: #1603533 --- packages/brpm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/brpm b/packages/brpm index b41b675f..45e47610 100755 --- a/packages/brpm +++ b/packages/brpm @@ -137,6 +137,9 @@ def generate_spec_contents(args, tmpl_fn, top_dir, arc_fn): # Map to known packages requires = [] for p in pkgs: + if p == 'argparse' and sys.version_info[0:2] >= (2, 7): + # Not needed on anything but 2.6 or older. + continue tgt_pkg = PKG_MP[args.distro].get(p) if not tgt_pkg: raise RuntimeError(("Do not know how to translate pypi dependency" -- cgit v1.2.3