Allow the user to set PIP_CONSTRAINT and it affect build-system.requires

This commit is contained in:
Joe Rickerby
2023-11-24 11:49:26 +00:00
parent 859ebaf371
commit d198c90f7a
4 changed files with 44 additions and 3 deletions
+3 -1
View File
@@ -409,7 +409,9 @@ def build(options: Options, tmp_path: Path) -> None:
config.version
)
)
build_env["PIP_CONSTRAINT"] = constraint_path.as_uri()
build_env["PIP_CONSTRAINT"] = (
constraint_path.as_uri() + " " + build_env.get("PIP_CONSTRAINT", "")
)
build_env["VIRTUALENV_PIP"] = get_pip_version(env)
call(
"python",