From e8f7e281a7d389297783a2185fd0ff09ea4493f5 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 26 Aug 2024 14:03:51 -0400 Subject: [PATCH] create-production-venv: Do not pull in "recommended" packages. This prevents, among other things, `libvips` from pulling in the `firefox` package by way of the `nip2` package. Fixes: #31411. --- scripts/lib/create-production-venv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/create-production-venv b/scripts/lib/create-production-venv index b0c285f32d..49402513a6 100755 --- a/scripts/lib/create-production-venv +++ b/scripts/lib/create-production-venv @@ -20,7 +20,7 @@ vendor = distro_info["ID"] os_version = distro_info["VERSION_ID"] VENV_DEPENDENCIES = get_venv_dependencies(vendor, os_version) if "debian" in os_families(): - run(["apt-get", "-y", "install", *VENV_DEPENDENCIES]) + run(["apt-get", "-y", "install", "--no-install-recommends", *VENV_DEPENDENCIES]) elif "fedora" in os_families(): run(["yum", "-y", "install", *VENV_DEPENDENCIES]) else: