From: John Snow Date: Wed, 18 Feb 2026 21:33:57 +0000 (-0500) Subject: python/mkvenv: create timestamp file for each group "ensured" X-Git-Tag: v11.0.0-rc0~51^2~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6aadbb7e5460f830bfad4ead5a7e9b17836bb7a4;p=thirdparty%2Fqemu.git 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 Message-ID: <20260218213416.674483-3-jsnow@redhat.com> Signed-off-by: John Snow --- diff --git a/python/scripts/mkvenv.py b/python/scripts/mkvenv.py index 5cba5770d22..b4662d33e6e 100644 --- a/python/scripts/mkvenv.py +++ b/python/scripts/mkvenv.py @@ -838,6 +838,12 @@ def ensure_group( raise Ouch(result[0]) raise SystemExit(f"\n{result[0]}\n\n") + if inside_a_venv(): + for group in groups: + path = Path(sys.prefix).joinpath(f"{group}.group") + with open(path, "w", encoding="UTF8"): + pass + def post_venv_setup() -> None: """