diff --git a/frontends/concrete-python/concrete/fhe/compilation/server.py b/frontends/concrete-python/concrete/fhe/compilation/server.py index 5a13fdef97..d1905f31de 100644 --- a/frontends/concrete-python/concrete/fhe/compilation/server.py +++ b/frontends/concrete-python/concrete/fhe/compilation/server.py @@ -189,10 +189,8 @@ def create( if configuration.compiler_verbose_mode: # pragma: no cover set_compiler_logging(True) - # pylint: disable=consider-using-with - output_dir = tempfile.TemporaryDirectory() - output_dir_path = Path(output_dir.name) - # pylint: enable=consider-using-with + output_dir = tempfile.mkdtemp() + output_dir_path = Path(output_dir) support = LibrarySupport.new( str(output_dir_path), generateCppHeader=False, generateStaticLib=False