comparison 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
comparison
equal deleted inserted replaced
2676:da8f3ac86845 2677:12620b10b20a
18 # You should have received a copy of the GNU Affero General Public License 18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 20
21 from setuptools import setup, find_packages 21 from setuptools import setup, find_packages
22 import os 22 import os
23 import platform
23 24
24 NAME = 'sat' 25 NAME = 'sat'
25 26
26 install_requires = [ 27 install_requires = [
27 'babel', 28 'babel',
48 'shortuuid', 49 'shortuuid',
49 'twisted >= 15.2.0', 50 'twisted >= 15.2.0',
50 'urwid >= 1.2.0', 51 'urwid >= 1.2.0',
51 'urwid-satext >= 0.6.1', 52 'urwid-satext >= 0.6.1',
52 'wokkel >= 0.7.1', 53 'wokkel >= 0.7.1',
53 'omemo',
54 ] 54 ]
55
56 if platform.system() in ('Linux', 'Windows'):
57 # python-omemo is currently supported only on those platforms
58 install_requires.append('omemo')
55 59
56 DBUS_DIR = 'dbus-1/services' 60 DBUS_DIR = 'dbus-1/services'
57 DBUS_FILE = 'misc/org.salutatoi.SAT.service' 61 DBUS_FILE = 'misc/org.salutatoi.SAT.service'
58 with open(os.path.join(NAME, 'VERSION')) as f: 62 with open(os.path.join(NAME, 'VERSION')) as f:
59 VERSION = f.read().strip() 63 VERSION = f.read().strip()