Allow setuptools and pip in compiled requirements files

This aligns with the direction of pip-compile and uv, and removes some
code from this script. See:

    https://github.com/astral-sh/uv/issues/1353
    https://github.com/jazzband/pip-tools/issues/989#issuecomment-1134985118

The code being removed worked fine. So if it turns out that installing a
newer setuptools or pip in virtualenvs break stuff, it's fine to add
back.
This commit is contained in:
toofar 2025-03-29 17:57:00 +13:00
parent ea9619bfb3
commit 161ce7bfce
1 changed files with 0 additions and 4 deletions

View File

@ -400,10 +400,6 @@ def get_updated_requirements_compile(filename, venv_dir, comments):
run_pip(venv_dir, 'install', '-U', 'uv', quiet=not utils.ON_CI)
uv_command = "uv pip compile -U".split()
if os.path.basename(filename) != "requirements-tox.txt-raw":
# Ignore pip dependencies to match pip freeze.
for package in ["pip", "setuptools"]:
uv_command += ["--no-emit-package", package]
if comments["pre"]:
uv_command.extend("--prerelease allow".split())
# Other interesting options: