Skip to content

Commit

Permalink
scripts/pythondistdeps: Only print rich dep list when required to.
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonmessmer authored and ignatenkobrain committed Dec 20, 2019
1 parent 4a71a3e commit 3f58fc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/pythondistdeps.py
Expand Up @@ -269,7 +269,10 @@
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)

0 comments on commit 3f58fc3

Please sign in to comment.