Add distro to requirements and use for packaging

- Add distro as a requirement
- Use distro.id() to get the id as it is a bit cleaner than distro.linux_distribution()
This commit is contained in:
Andrew Senetar 2020-06-24 18:39:06 -05:00
parent 0e8cd32a6e
commit ecf005fad0
Signed by: arsenetar
GPG Key ID: C63300DCE48AB2F1
2 changed files with 3 additions and 5 deletions

View File

@ -12,6 +12,7 @@ import shutil
import json
from argparse import ArgumentParser
import platform
import distro
import re
from hscommon.build import (
@ -212,11 +213,7 @@ def main():
package_windows()
else:
if not args.arch_pkg:
try:
distname, _, _ = platform.dist()
except AttributeError:
import distro
distname, _, _ = distro.linux_distribution(full_distribution_name=False)
distname = distro.id()
else:
distname = "arch"
if distname == "arch":

View File

@ -2,3 +2,4 @@ Send2Trash>=1.3.0
sphinx>=1.2.2
polib>=1.0.4
hsaudiotag3k>=1.1.3
distro>=1.5.0