Work around deprecation of platform.dist() in recent python
This commit is contained in:
parent
c1b533f8db
commit
b4247409c6
13
setup.py
13
setup.py
|
@ -95,11 +95,14 @@ if __name__ == "__main__":
|
|||
['desktop/icons/24x24/pybitmessage.png'])
|
||||
]
|
||||
|
||||
if platform.dist()[0] in ('Debian', 'Ubuntu'):
|
||||
data_files += [
|
||||
("etc/apparmor.d/",
|
||||
['packages/apparmor/pybitmessage'])
|
||||
]
|
||||
try:
|
||||
if platform.dist()[0] in ('Debian', 'Ubuntu'):
|
||||
data_files += [
|
||||
("etc/apparmor.d/",
|
||||
['packages/apparmor/pybitmessage'])
|
||||
]
|
||||
except AttributeError:
|
||||
pass # FIXME: use distro for more recent python
|
||||
|
||||
dist = setup(
|
||||
name='pybitmessage',
|
||||
|
|
Loading…
Reference in New Issue
Block a user