From c0f352e79649d429473213fbc1ee415465955d4a Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Thu, 12 Dec 2024 03:03:11 +0100 Subject: [PATCH] fixup! `delete_on_close=False` --- piptools/build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piptools/build.py b/piptools/build.py index ca7d0fe6..78d8b069 100644 --- a/piptools/build.py +++ b/piptools/build.py @@ -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