Skip to content

Commit eb9e03a

Browse files
committed
Delete more dist info logic
1 parent 8b70c2c commit eb9e03a

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

backends/build_system/exe.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ def _update_metadata(self):
5656
self._final_dist_dir,
5757
distribution_source=DISTRIBUTION_SOURCE_EXE,
5858
)
59-
for distinfo in self._utils.glob(
60-
'**/*.dist-info', root=self._final_dist_dir
61-
):
62-
self._utils.rmtree(os.path.join(self._final_dist_dir, distinfo))
6359

6460
def _ensure_no_existing_build_dir(self):
6561
if self._utils.isdir(self._dist_dir):

scripts/utils.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ def update_metadata(dirname, **kwargs):
9595
json.dump(metadata, f)
9696

9797

98-
def remove_dist_info(dirname):
99-
with cd(dirname):
100-
for distinfo in glob.glob("**/*.dist-info", recursive=True):
101-
path = os.path.join(dirname, distinfo)
102-
shutil.rmtree(path)
103-
104-
10598
def save_to_zip(dirname, zipfile_name):
10699
if zipfile_name.endswith('.zip'):
107100
zipfile_name = zipfile_name[:-4]

0 commit comments

Comments
 (0)