diff --git a/package.py b/package.py index 8d9b562a..216007c8 100644 --- a/package.py +++ b/package.py @@ -212,7 +212,11 @@ def main(): package_windows() else: if not args.arch_pkg: - distname, _, _ = platform.dist() + try: + distname, _, _ = platform.dist() + except AttributeError: + import distro + distname, _, _ = distro.linux_distribution(full_distribution_name=False) else: distname = "arch" if distname == "arch":