1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: Remove dependencies that may no be found at runtime
Some distributions are not found by pkg_resources when load_entry_point is
called at startup
Author: Nick Morrott <knowledgejunkie@gmail.com>
Forwarded: not-needed
Last-Update: 2019-01-16
---
--- a/setup.py
+++ b/setup.py
@@ -18,16 +18,11 @@
'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(
|