From: Nick Morrott <knowledgejunkie@gmail.com>
Date: Sun, 24 May 2020 10:21:35 -0700
Subject: Remove dependencies that may no be found at runtime

Forwarded: not-needed
Last-Update: 2019-01-16

Some distributions are not found by pkg_resources when load_entry_point is
called at startup
Last-Update: 2019-01-16
---
 setup.py | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/setup.py b/setup.py
index 356d771..c9d9a2c 100644
--- a/setup.py
+++ b/setup.py
@@ -18,16 +18,11 @@ install_requires = ['pycodestyle>=2.4.0', 'pyflakes>=2.0.0',
                     'guizero>=0.5.2', 'Pillow>=5.2.0',
                     'requests>=2.19.1', 'semver>=2.0.1', 'nudatus>=0.0.3', ]
 
-# Exclude packages not available for ARM in PyPI/piwheels (Raspberry Pi)
-try:
-    machine = platform.machine()
-    if machine.lower().startswith('arm'):
-        exclude = ('pyqt5', 'qscintilla', 'qtconsole', 'PyQtChart')
-        install_requires = [requirement for requirement in install_requires
-                            if not requirement.startswith(exclude)]
-except Exception:
-    # Something unexpected happened, so simply keep all requires
-    pass
+# Debian: exclude packages which may not be found at runtime due to their
+# packaging
+exclude = ('pyqt5', 'qscintilla', 'qtconsole', 'PyQtChart')
+install_requires = [requirement for requirement in install_requires
+                    if not requirement.startswith(exclude)]
 
 
 setup(
