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:
parent
3f7fdfe443
commit
c162d2b886
3 changed files with 12 additions and 13 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue