Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ef81a1

Browse files
committed
remove unused clean_up logic
1 parent 5623921 commit 2ef81a1

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

make.py

-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ def build(self, rebuild: bool = True, requirements_files_list=None, winpy_dirnam
252252
self.distribution.do_pip_action(actions)
253253
self.distribution.patch_standard_packages()
254254

255-
self._print_action("Cleaning up distribution")
256-
self.distribution.clean_up() # still usefull ?
257255
self._print_action("Writing package index")
258256
self.winpyver2 = f"{self.python_full_version}.{self.build_number}"
259257
output_markdown_filename = str(self.winpython_directory.parent / f"WinPython{self.flavor}-{self.distribution.architecture}bit-{self.winpyver2}.md")

winpython/wppm.py

-15
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@ def __init__(self, target: str = None, verbose: bool = False):
4747
self.version, self.architecture = utils.get_python_infos(self.target)
4848
self.short_exe = Path(utils.get_python_executable(self.target)).name
4949

50-
def clean_up(self):
51-
"""Remove directories that were marked for removal."""
52-
for path in self.to_be_removed:
53-
try:
54-
shutil.rmtree(path, onexc=utils.onerror)
55-
except OSError as e:
56-
print(f"Error: Could not remove directory {path}: {e}", file=sys.stderr)
57-
58-
def remove_directory(self, path: str):
59-
"""Try to remove a directory, add to removal list on failure."""
60-
try:
61-
shutil.rmtree(path)
62-
except OSError:
63-
self.to_be_removed.append(path)
64-
6550
def create_file(self, package, name, dstdir, contents):
6651
"""Generate data file -- path is relative to distribution root dir"""
6752
dst = Path(dstdir) / name

0 commit comments

Comments
 (0)