Skip to content

Commit

Permalink
Use hidden directory to not interfere with discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Nov 22, 2022
1 parent 6deebc6 commit 559f151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools/build_meta.py
Expand Up @@ -385,7 +385,8 @@ def _build_with_temp_dir(self, setup_command, result_extension,

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

0 comments on commit 559f151

Please sign in to comment.