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:
parent
0e8cd32a6e
commit
ecf005fad0
|
@ -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":
|
||||
|
|
|
@ -2,3 +2,4 @@ Send2Trash>=1.3.0
|
|||
sphinx>=1.2.2
|
||||
polib>=1.0.4
|
||||
hsaudiotag3k>=1.1.3
|
||||
distro>=1.5.0
|
Loading…
Reference in New Issue