File: remove-problematic-runtime-dependencies

package info (click to toggle)
mu-editor 1.0.3%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,440 kB
  • sloc: python: 16,321; makefile: 129; xml: 29; sh: 7
file content (31 lines) | stat: -rw-r--r-- 1,203 bytes parent folder | download | duplicates (3)
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(