@samitouri / QOSamiQemu / commits / 6aadbb7e54

python/mkvenv: create timestamp file for each group "ensured"

Each group ensured by the mkvenv script will create an empty timestamp file named {groupname}.group which can be used to conditionally trigger dependency installation from various scripts and build machinery. Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260218213416.674483-3-jsnow@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com>

John Snow committed Feb 18, 2026 at 16:33 UTC 6aadbb7e5460f830bfad4ead5a7e9b17836bb7a4
1 file changed +6
python/scripts/mkvenv.py
+6
@@ -838,6 +838,12 @@ def ensure_group(
838 raise Ouch(result[0])
839 raise SystemExit(f"\n{result[0]}\n\n")
840
841 + if inside_a_venv():
842 + for group in groups:
843 + path = Path(sys.prefix).joinpath(f"{group}.group")
844 + with open(path, "w", encoding="UTF8"):
845 + pass
846 +
847
848 def post_venv_setup() -> None:
849 """