Change order of environment-pass, so environment can reference it

This commit is contained in:
Joe Rickerby
2023-09-18 17:08:30 +01:00
parent 647b509c74
commit 62a06d28b5
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -530,9 +530,9 @@ class Options:
# Pass through environment variables
if self.platform == "linux":
for env_var_name in environment_pass:
for env_var_name in reversed(environment_pass):
with contextlib.suppress(KeyError):
environment.add(env_var_name, self.env[env_var_name])
environment.add(env_var_name, self.env[env_var_name], prepend=True)
if dependency_versions == "pinned":
dependency_constraints: None | (