File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -409,8 +409,10 @@ def build(options: Options, tmp_path: Path) -> None:
409
409
config .version
410
410
)
411
411
)
412
- build_env ["PIP_CONSTRAINT" ] = (
413
- constraint_path .as_uri () + " " + build_env .get ("PIP_CONSTRAINT" , "" )
412
+ user_constraints = build_env .get ("PIP_CONSTRAINT" )
413
+ our_constraints = constraint_path .as_uri ()
414
+ build_env ["PIP_CONSTRAINT" ] = " " .join (
415
+ c for c in [user_constraints , our_constraints ] if c
414
416
)
415
417
build_env ["VIRTUALENV_PIP" ] = get_pip_version (env )
416
418
call (
Original file line number Diff line number Diff line change @@ -455,9 +455,12 @@ def build(options: Options, tmp_path: Path) -> None:
455
455
tmp_file .write_bytes (constraints_path .read_bytes ())
456
456
constraints_path = tmp_file
457
457
458
- build_env ["PIP_CONSTRAINT" ] = (
459
- str (constraints_path ) + " " + build_env .get ("PIP_CONSTRAINT" , "" )
458
+ our_constraints = str (constraints_path )
459
+ user_constraints = build_env .get ("PIP_CONSTRAINT" )
460
+ build_env ["PIP_CONSTRAINT" ] = " " .join (
461
+ c for c in [our_constraints , user_constraints ] if c
460
462
)
463
+
461
464
build_env ["VIRTUALENV_PIP" ] = get_pip_version (env )
462
465
call (
463
466
"python" ,
You can’t perform that action at this time.
0 commit comments