bin/pick-ui: use venv wrapper
authorEric Engestrom <eric@igalia.com>
Tue, 20 Jun 2023 13:42:01 +0000 (14:42 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Aug 2023 23:21:32 +0000 (23:21 +0000)
Signed-off-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24367>

bin/pick-ui.sh [new file with mode: 0755]
bin/pick/requirements.txt [new file with mode: 0644]

diff --git a/bin/pick-ui.sh b/bin/pick-ui.sh
new file mode 100755 (executable)
index 0000000..6e44cf8
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+set -eu
+
+this_dir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")
+readonly this_dir
+
+exec \
+  "$this_dir/python-venv.sh" \
+  "$this_dir/pick/requirements.txt" \
+  "$this_dir/pick-ui.py" "$@"
diff --git a/bin/pick/requirements.txt b/bin/pick/requirements.txt
new file mode 100644 (file)
index 0000000..0a6f4e9
--- /dev/null
@@ -0,0 +1,2 @@
+attrs==23.1.0
+urwid==2.1.2