summaryrefslogtreecommitdiff
path: root/setuptools/command/dist_info.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-06-21 13:43:19 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-06-21 13:43:19 +0100
commit90c31496690312f271a1619a79e9dc98d0b4ae3c (patch)
treec11b53c8a7d7def38cddc0cd2c72c9d87c6372c7 /setuptools/command/dist_info.py
parentfd5fcbb1ec200ba2b0c657628a591ce2255998e3 (diff)
downloadpython-setuptools-git-90c31496690312f271a1619a79e9dc98d0b4ae3c.tar.gz
Fix problems with backup directory
Diffstat (limited to 'setuptools/command/dist_info.py')
-rw-r--r--setuptools/command/dist_info.py2
1 files changed, 1 insertions, 1 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: