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

This commit is contained in:
Dmitri Bogomolov 2021-02-06 22:59:57 +02:00 committed by Muzahid
parent c1b533f8db
commit b4247409c6
Signed by untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA

View File

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