Skip to content

Commit

Permalink
fixup! delete_on_close=False
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Dec 12, 2024
1 parent 83bbeb7 commit c0f352e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion piptools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ def _env_var(
def _temporary_constraints_file_set_for_pip(
upgrade_packages: tuple[str, ...],
) -> Iterator[None]:
with tempfile.NamedTemporaryFile(mode="w+t") as tmpfile:
with tempfile.NamedTemporaryFile(
mode="w+t",
delete_on_close=False,
) as tmpfile:
# Write packages to upgrade to a temporary file to set as
# constraints for the installation to the builder environment,
# in case build requirements are among them
Expand Down

0 comments on commit c0f352e

Please sign in to comment.