Skip to content

Commit c76927a

Browse files
committed
further cleanup of legacy method
pip checks it all now.
1 parent 160ccb0 commit c76927a

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

make.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -527,34 +527,6 @@ def _add_msvc_files(self):
527527
architecture=self.distribution.architecture):
528528
shutil.copy(fname, self.python_dir)
529529

530-
def _check_packages(self):
531-
"""Check packages for duplicates or unsupported packages"""
532-
print("Checking packages")
533-
packages = []
534-
my_plist = []
535-
my_plist += os.listdir(self.wheeldir)
536-
for fname0 in my_plist:
537-
fname = self.get_package_fname(fname0)
538-
if fname == self.python_fname:
539-
continue
540-
try:
541-
pack = wppm.Package(fname)
542-
except NotImplementedError:
543-
print("WARNING: package %s is not supported"
544-
% osp.basename(fname), file=sys.stderr)
545-
continue
546-
packages.append(pack)
547-
all_duplicates = []
548-
for pack in packages:
549-
if pack.name in all_duplicates:
550-
continue
551-
all_duplicates.append(pack.name)
552-
duplicates = [p for p in packages if p.name == pack.name]
553-
if len(duplicates) > 1:
554-
print("WARNING: duplicate packages %s (%s)" %
555-
(pack.name, ", ".join([p.version for p in duplicates])),
556-
file=sys.stderr)
557-
558530
def _copy_dev_tools(self):
559531
"""Copy dev tools"""
560532
self._print("Copying tools")
@@ -1016,9 +988,6 @@ def _create_batch_scripts(self):
1016988
These files should help the user writing his/her own
1017989
specific batch file to call Python scripts inside WinPython.
1018990
The environment variables are set-up in 'env_.bat' and 'env_for_icons.bat'.""")
1019-
conv = lambda path: ";".join(['%WINPYDIR%\\'+pth for pth in path])
1020-
path = conv(self.prepath) + ";%PATH%;" + conv(self.postpath)
1021-
1022991

1023992
self.create_batch_script('make_cython_use_mingw.bat', r"""@echo off
1024993
call "%~dp0env.bat"
@@ -1362,8 +1331,6 @@ def make(self, remove_existing=True, requirements=None, my_winpydir=None): #, f
13621331
verbose=self.verbose,
13631332
indent=True)
13641333

1365-
self._check_packages()
1366-
13671334
if remove_existing:
13681335
if not self.simulation:
13691336
self._add_msvc_files()

0 commit comments

Comments
 (0)