add dbus-python to install_requires on linux
#!/usr/bin/env python
from os.path import dirname, join
+from sys import platform
import plyer
try:
@@ -27,6 +28,10 @@ with open(join(curdir, "README.rst")) as fd:
with open(join(curdir, "CHANGELOG.md")) as fd:
changelog = fd.read()
+install_requires = []
+if platform in ('linux', 'linux2'):
+ install_requires += ['dbus-python']
+
setup(
name='plyer',
version=plyer.__version__,
@@ -54,4 +59,5 @@ setup(
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
+ install_requires=install_requires
)
