Not depending on python-distro.

- Python-distro is new and isn't packaged in many distributions.
- Can just get the distribution ID directly.
This commit is contained in:
Andrew Hamilton 2017-06-07 21:32:43 +01:00
parent 3f7fdfe443
commit c162d2b886
3 changed files with 12 additions and 13 deletions

View file

@ -4,12 +4,11 @@
# Licensed under the Artistic License 2.0.
import distro
import subprocess
import tools
dist_id = distro.id()
dist_id = tools.get_distro_id()
pip_deps, pip3_deps, dist_deps = set(), set(), set()
for dependency in tools.dependencies(dist_id):
if "/" in dependency: