Allow the user to set PIP_CONSTRAINT and it affect build-system.requires
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -455,7 +455,9 @@ def build(options: Options, tmp_path: Path) -> None:
|
||||
tmp_file.write_bytes(constraints_path.read_bytes())
|
||||
constraints_path = tmp_file
|
||||
|
||||
build_env["PIP_CONSTRAINT"] = str(constraints_path)
|
||||
build_env["PIP_CONSTRAINT"] = (
|
||||
str(constraints_path) + " " + build_env.get("PIP_CONSTRAINT", "")
|
||||
)
|
||||
build_env["VIRTUALENV_PIP"] = get_pip_version(env)
|
||||
call(
|
||||
"python",
|
||||
|
||||
Reference in New Issue
Block a user