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.
This commit is contained in:
Alex Vandiver 2024-08-26 14:03:51 -04:00 committed by Tim Abbott
parent 44e73eecc1
commit e8f7e281a7
1 changed files with 1 additions and 1 deletions

View File

@ -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: