File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22# (c) 2014-2021 The mqttwarn developers
33import os
4+ import platform
5+
46from setuptools import setup , find_packages
57
68here = os .path .abspath (os .path .dirname (__file__ ))
110112 ],
111113}
112114
113- # Convenience extra to install all dependencies
115+
116+ # Convenience extra to install *all* dependencies for building a `mqttwarn-full` distribution.
114117extras_all = []
115118for extra , packages in extras .items ():
116- # FIXME: Skip all packages needing compilation.
119+
120+ # FIXME: Skip specific packages having build issues.
117121 # https://github.com/commx/python-rrdtool/issues/36
118122 if extra in ["mysql" , "rrdtool" ]:
119123 continue
124+
125+ # FIXME: Skip specific packages on specific platforms,
126+ # because they would also need a build toolchain.
127+ machine = platform .uname ()[4 ]
128+ if machine in ["armv7l" , "aarch64" ] and extra in ["postgres" , "slixmpp" , "ssh" ]:
129+ continue
130+
131+ # FIXME: The `cryptography` package is not available as binary wheel on arm32v7.
132+ if machine in ["armv7l" ] and extra in ["apprise" ]:
133+ continue
134+
120135 for package in packages :
121136 extras_all .append (package )
137+
122138extras ["all" ] = extras_all
123139
140+
141+ # Packages needed for running the tests.
124142extras ["test" ] = [
125143 'pytest>=4.6.7' ,
126144 'pytest-cov>=2.8.1' ,
127145 'lovely.testlayers>=0.7.1' ,
128146 'tox>=3.14.2' ,
129147]
130148
149+
131150setup (name = 'mqttwarn' ,
132151 version = '0.23.1' ,
133152 description = 'mqttwarn - subscribe to MQTT topics and notify pluggable services' ,
You can’t perform that action at this time.
0 commit comments