home
·
contact
·
privacy
projects
/
plomlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2dc66a
)
Add helper for handling exceptions on missing dependencies.
master
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 24 Sep 2025 12:28:54 +0000
(14:28 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 24 Sep 2025 12:28:54 +0000
(14:28 +0200)
py/setup.py
[new file with mode: 0644]
patch
|
blob
diff --git a/py/setup.py
b/py/setup.py
new file mode 100644
(file)
index 0000000..
1070335
--- /dev/null
+++ b/
py/setup.py
@@ -0,0
+1,8
@@
+"""Setup management."""
+from sys import exit as sys_exit
+
+
+def dependency_hint(e: Exception) -> None:
+ 'Provide helpful advice on missing dependency exception.'
+ print(f'Missing dependency: {e}. Please run with "install_deps" argument.')
+ sys_exit(1)