style improvements from code review
This commit is contained in:
@@ -409,8 +409,10 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
config.version
|
config.version
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
build_env["PIP_CONSTRAINT"] = (
|
user_constraints = build_env.get("PIP_CONSTRAINT")
|
||||||
constraint_path.as_uri() + " " + build_env.get("PIP_CONSTRAINT", "")
|
our_constraints = constraint_path.as_uri()
|
||||||
|
build_env["PIP_CONSTRAINT"] = " ".join(
|
||||||
|
c for c in [user_constraints, our_constraints] if c
|
||||||
)
|
)
|
||||||
build_env["VIRTUALENV_PIP"] = get_pip_version(env)
|
build_env["VIRTUALENV_PIP"] = get_pip_version(env)
|
||||||
call(
|
call(
|
||||||
|
|||||||
@@ -455,9 +455,12 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
tmp_file.write_bytes(constraints_path.read_bytes())
|
tmp_file.write_bytes(constraints_path.read_bytes())
|
||||||
constraints_path = tmp_file
|
constraints_path = tmp_file
|
||||||
|
|
||||||
build_env["PIP_CONSTRAINT"] = (
|
our_constraints = str(constraints_path)
|
||||||
str(constraints_path) + " " + build_env.get("PIP_CONSTRAINT", "")
|
user_constraints = build_env.get("PIP_CONSTRAINT")
|
||||||
|
build_env["PIP_CONSTRAINT"] = " ".join(
|
||||||
|
c for c in [our_constraints, user_constraints] if c
|
||||||
)
|
)
|
||||||
|
|
||||||
build_env["VIRTUALENV_PIP"] = get_pip_version(env)
|
build_env["VIRTUALENV_PIP"] = get_pip_version(env)
|
||||||
call(
|
call(
|
||||||
"python",
|
"python",
|
||||||
|
|||||||
Reference in New Issue
Block a user