Skip to content

Commit 559f151

Browse files
committed
Use hidden directory to not interfere with discovery
1 parent 6deebc6 commit 559f151

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools/build_meta.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ def _build_with_temp_dir(self, setup_command, result_extension,
385385

386386
# Build in a temporary directory, then copy to the target.
387387
os.makedirs(result_directory, exist_ok=True)
388-
with tempfile.TemporaryDirectory(dir=result_directory) as tmp_dist_dir:
388+
temp_opts = {"prefix": ".tmp-", "dir": result_directory}
389+
with tempfile.TemporaryDirectory(**temp_opts) as tmp_dist_dir:
389390
sys.argv = [
390391
*sys.argv[:1],
391392
*self._global_args(config_settings),

0 commit comments

Comments
 (0)