swc-installation-test-2.py: Prefer distro to platform.linux_distribution master
authorW. Trevor King <wking@tremily.us>
Sun, 10 Jul 2016 22:36:30 +0000 (15:36 -0700)
committerW. Trevor King <wking@tremily.us>
Sun, 10 Jul 2016 22:36:30 +0000 (15:36 -0700)
commita80817141f43d966be748c32f046bcfdfc5c4ee8
tree22c25adaf3097fb5d66fe42cddef14992ff92a1a
parent74844ea43e4df102d9013eae92d19f7f924ee00b
swc-installation-test-2.py: Prefer distro to platform.linux_distribution

platform.linux_distribution was deprecated in 2015 to be removed in
Python 3.7 [1,2].  And it may not exist at all on some Python builds
(Manjaro's [3]?).  Prefer distro (the replacement PyPI package [4,5])
on Linux if the user already has it installed.

If we can't find a distro/version, use '*' for generic help-URL
matching.  And silently skip distro/version information in
print_system_info.

[1]: http://bugs.python.org/issue1322#msg243063
[2]: https://docs.python.org/3/library/platform.html#platform.linux_distribution
[3]: https://github.com/prerit2010/swc-setup-installation-test/issues/7#issuecomment-231573710
[4]: http://bugs.python.org/issue1322#msg263896
[5]: https://pypi.python.org/pypi/distro
swc-installation-test-2.py