@@ -455,22 +455,6 @@ def _check_packages(self):
455455 (pack .name , ", " .join ([p .version for p in duplicates ])),
456456 file = sys .stderr )
457457
458- def _install_required_packages (self ):
459- """Installing required packages"""
460- print ("Installing required packages" )
461-
462- # Specific check for PyQt5 non-wheel:
463- import glob
464- if len (glob .glob (osp .join (self .wheeldir , 'PyQt5*.exe' ))) > 0 :
465- self .install_package (
466- 'PyQt5-([0-9\.\-]*)-gpl-Py%s-Qt([0-9\.\-]*)%s.exe'
467- % (self .python_version , self .pyqt_arch ))
468- # Install 'critical' packages first
469- for happy_few in ['setuptools' , 'pip' ]:
470- self .install_package (
471- '%s-([0-9\.]*[a-z\+]*[0-9]?)(.*)(\.exe|\.whl)' % happy_few ,
472- install_options = self .install_options + ['--upgrade' ])
473-
474458 def _install_all_other_packages (self ):
475459 """Try to install all other packages in wheeldir"""
476460 print ("Installing other packages" )
@@ -809,7 +793,17 @@ def make(self, remove_existing=True, requirements=None): #, find_links=None):
809793 self ._create_batch_scripts_initial ()
810794 self ._create_batch_scripts () # which set mingwpy as compiler
811795 self ._run_complement_batch_scripts ("run_required_first.bat" )
812- self ._install_required_packages ()
796+
797+ # force update of pip (FIRST) and setuptools here
798+ for req in ('pip' , 'setuptools' ):
799+ actions = ["install" ,"--upgrade" , req ]
800+ if self .install_options is not None :
801+ actions += self .install_options
802+ print ("piping %s" % ' ' .join (actions ))
803+ self ._print ("piping %s" % ' ' .join (actions ))
804+ self .distribution .do_pip_action (actions )
805+
806+ # install packages in source_dirs (not using requirements.txt)
813807 self ._install_all_other_packages ()
814808 if not self .simulation :
815809 self ._copy_dev_tools ()
@@ -1025,12 +1019,12 @@ def make_all(build_number, release_level, pyver,
10251019 # install_options=r'--no-index --pre --trusted-host=None',
10261020 # find_links=r'D:\Winpython\basedir34\packages.srcreq')
10271021
1028- make_all (1 , release_level = 'build3' , pyver = '3.5 ' , rootdir = r'D:\Winpython' , verbose = True ,
1029- archis = (64 , ), flavor = 'Slim ' ,
1030- requirements = r'D:\Winpython\basedir35\slim_requirements .txt' ,
1022+ make_all (1 , release_level = 'build3' , pyver = '3.4 ' , rootdir = r'D:\Winpython' , verbose = True ,
1023+ archis = (64 , ), flavor = 'Barebone ' ,
1024+ requirements = r'D:\Winpython\basedir34\barebone_requirements .txt' ,
10311025 install_options = r'--no-index --pre --trusted-host=None' ,
1032- find_links = r'D:\Winpython\basedir34\ packages.srcreq' ,
1033- source_dirs = r'D:\WinPython\basedir34\packages.src D:\WinPython\basedir35 \packages.win-amd64' ,
1026+ find_links = r'D:\Winpython\packages.srcreq' ,
1027+ source_dirs = r'D:\WinPython\basedir34\packages.src D:\WinPython\basedir34 \packages.win-amd64' ,
10341028 toolsdirs = r'D:\WinPython\basedir34\Tools.Slim' ,
10351029 docsdirs = r'D:\WinPython\basedir34\docs.Slim'
10361030)
0 commit comments