diff setup.py @ 2677:12620b10b20a

install: use omemo in install_requires only for platforms supported upstream
author Goffi <goffi@goffi.org>
date Thu, 20 Sep 2018 19:04:02 +0200
parents e7bfbded652a
children d51a3381cb78
line wrap: on
line diff
--- a/setup.py	Tue Sep 18 20:59:34 2018 +0200
+++ b/setup.py	Thu Sep 20 19:04:02 2018 +0200
@@ -20,6 +20,7 @@
 
 from setuptools import setup, find_packages
 import os
+import platform
 
 NAME = 'sat'
 
@@ -50,9 +51,12 @@
     'urwid >= 1.2.0',
     'urwid-satext >= 0.6.1',
     'wokkel >= 0.7.1',
-    'omemo',
 ]
 
+if platform.system() in ('Linux', 'Windows'):
+    # python-omemo is currently supported only on those platforms
+    install_requires.append('omemo')
+
 DBUS_DIR = 'dbus-1/services'
 DBUS_FILE = 'misc/org.salutatoi.SAT.service'
 with open(os.path.join(NAME, 'VERSION')) as f: