diff options
-rw-r--r-- | setuptools/command/dist_info.py | 2 | ||||
-rw-r--r-- | setuptools/tests/test_dist_info.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py index 7f35a476..0685c945 100644 --- a/setuptools/command/dist_info.py +++ b/setuptools/command/dist_info.py @@ -80,7 +80,7 @@ class dist_info(Command): @contextmanager def _maybe_bkp_dir(self, dir_path: str, requires_bkp: bool): if requires_bkp: - bkp_name = f"__bkp__.{dir_path}.__bkp__" + bkp_name = f"{dir_path}.__bkp__" _rm(bkp_name, ignore_errors=True) _copy(dir_path, bkp_name, dirs_exist_ok=True, symlinks=True) try: diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py index 605cb196..350e6429 100644 --- a/setuptools/tests/test_dist_info.py +++ b/setuptools/tests/test_dist_info.py @@ -125,8 +125,8 @@ class TestDistInfo: expected_egg_info = 1 if keep_egg_info else 0 assert len(list(out.glob("*.egg-info"))) == expected_egg_info assert len(list(tmp_path.glob("*.egg-info"))) == 0 - assert len(list(out.glob("__bkp__.*.__bkp__"))) == 0 - assert len(list(tmp_path.glob("__bkp__.*.__bkp__"))) == 0 + assert len(list(out.glob("*.__bkp__"))) == 0 + assert len(list(tmp_path.glob("*.__bkp__"))) == 0 class TestWheelCompatibility: |