From 3f58fc31f7a0c8807f5d42e4f593640880dfb58e Mon Sep 17 00:00:00 2001 From: Gordon Messmer Date: Fri, 20 Dec 2019 11:57:02 -0800 Subject: [PATCH] scripts/pythondistdeps: Only print rich dep list when required to. --- scripts/pythondistdeps.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/pythondistdeps.py b/scripts/pythondistdeps.py index 4628265a8..8671cdccf 100755 --- a/scripts/pythondistdeps.py +++ b/scripts/pythondistdeps.py @@ -269,7 +269,10 @@ for name in names: spec_list.append('{n} >= {v} with {n} < {vnext}'.format(n=name, v=spec[1], vnext=next_ver)) else: spec_list.append('{} {} {}'.format(name, spec[0], spec[1])) - print('(%s)' % ' with '.join(spec_list)) + if len(spec_list) == 1: + print(spec_list[0]) + else: + print('({})'.format(' with '.join(spec_list))) else: # Print out unversioned provides, requires, recommends, conflicts print(name)