Work around deprecation of platform.dist() in recent python

This commit is contained in:
Dmitri Bogomolov 2021-02-06 22:59:57 +02:00
parent 81645eadef
commit 671df69303
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -95,11 +95,14 @@ if __name__ == "__main__":
['desktop/icons/24x24/pybitmessage.png']) ['desktop/icons/24x24/pybitmessage.png'])
] ]
try:
if platform.dist()[0] in ('Debian', 'Ubuntu'): if platform.dist()[0] in ('Debian', 'Ubuntu'):
data_files += [ data_files += [
("etc/apparmor.d/", ("etc/apparmor.d/",
['packages/apparmor/pybitmessage']) ['packages/apparmor/pybitmessage'])
] ]
except AttributeError:
pass # FIXME: use distro for more recent python
dist = setup( dist = setup(
name='pybitmessage', name='pybitmessage',