changeset 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 da8f3ac86845
children 35a513811540
files setup.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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: