home · contact · privacy
Standardize dependency-check into plomlib's dependency_hint.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 24 Sep 2025 12:33:42 +0000 (14:33 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 24 Sep 2025 12:33:42 +0000 (14:33 +0200)
plomlib
src/plomlib/setup.py [new symlink]
src/run.py

diff --git a/plomlib b/plomlib
index f2dc66a2d4f1e8823246d1621b424e44ec423897..7aa63ce21db697ce663b56e345fe0c09969556a4 160000 (submodule)
--- a/plomlib
+++ b/plomlib
@@ -1 +1 @@
-Subproject commit f2dc66a2d4f1e8823246d1621b424e44ec423897
+Subproject commit 7aa63ce21db697ce663b56e345fe0c09969556a4
diff --git a/src/plomlib/setup.py b/src/plomlib/setup.py
new file mode 120000 (symlink)
index 0000000..4a26f80
--- /dev/null
@@ -0,0 +1 @@
+../../plomlib/py/setup.py
\ No newline at end of file
index c0af40da641ea76e1a92c779afc840957d55ce6f..32cd2f8a94745a04d5ca37ec17217986a31bd4d0 100755 (executable)
@@ -1,7 +1,11 @@
 #!/usr/bin/env python3
 'Attempt at an IRC client.'
+
+# standard libs
 from queue import SimpleQueue
-from sys import argv, exit as sys_exit
+from sys import argv
+# non-standard libs
+from plomlib.setup import dependency_hint
 try:
     from ircplom.events import ExceptionEvent, QuitEvent
     from ircplom.client import ClientsDb, ClientEvent, NewClientEvent
@@ -9,8 +13,7 @@ try:
     from ircplom.client_tui import ClientTui
     from ircplom.testing import TestTerminal, TestingClientTui
 except ModuleNotFoundError as e:
-    print(f'Missing dependency: {e}. Please run with "install_deps" argument.')
-    sys_exit(1)
+    dependency_hint(e)
 
 
 def main_loop(cls_term: type[TerminalInterface], cls_tui: type[BaseTui]