@@ -445,11 +445,17 @@ def _install_required_packages(self):
445445 """Installing required packages"""
446446 print ("Installing required packages" )
447447
448+ # Specific check for PyQt5 non-wheel:
449+ import glob
450+ if len (glob .glob (osp .join (self .wheeldir , 'PyQt5*.exe' ))) > 0 :
451+ self .install_package (
452+ 'PyQt5-([0-9\.\-]*)-gpl-Py%s-Qt([0-9\.\-]*)%s.exe'
453+ % (self .python_version , self .pyqt_arch ))
448454 # Install 'critical' packages first
449455 for happy_few in ['setuptools' , 'pip' , 'pywin32' ]:
450456 self .install_package (
451457 '%s-([0-9\.]*[a-z\+]*[0-9]?)(.*)(\.exe|\.whl)' % happy_few ,
452- install_options = self .install_options + ['--upgrade' ])
458+ install_options = self .install_options + ['--upgrade' ])
453459
454460 def _install_all_other_packages (self ):
455461 """Try to install all other packages in wheeldir"""
@@ -528,7 +534,7 @@ def _create_launchers(self):
528534 QtDemo_path = 'demos\qtdemo' if QtV == 4 else 'qtdemo'
529535 if osp .isdir (osp .join (python_lib_dir , PyQt )):
530536 self .create_launcher ('Qt%s Demo.exe' % QtV , 'qt.ico' ,
531- args = 'qtdemo.pyw' , workdir =
537+ args = 'qtdemo.pyw' if QtV == 4 else 'qtdemo.py' , workdir =
532538 r'${WINPYDIR}\Lib\site-packages\%s\examples\%s' %
533539 (PyQt , QtDemo_path ) )
534540 self .create_launcher ('Qt%s Assistant.exe' % QtV ,
@@ -1068,10 +1074,10 @@ def make_all(build_number, release_level, pyver,
10681074
10691075 #make_all(4, '', pyver='3.4', rootdir=r'D:\Winpython',
10701076 # verbose=False, archis=(32, ))
1071- make_all (4 , '' , pyver = '3.4' , rootdir = r'D:\Winpython' ,
1072- verbose = False , archis = (64 , ), flavor = '' )
1073- # make_all(4, '', pyver='3.4', rootdir=r'D:\Winpython\basedirQt5 ',
1074- # verbose=False, archis=(64, ))
1077+ # make_all(4, '', pyver='3.4', rootdir=r'D:\Winpython',
1078+ # verbose=False, archis=(64, ), flavor='')
1079+ make_all (4 , '' , pyver = '3.4' , rootdir = r'D:\WinpythonQt5 ' ,
1080+ verbose = False , archis = (64 , ))
10751081 #make_all(1, '', pyver='2.7', rootdir=r'D:\Winpython',
10761082 # verbose=False, archis=(64, ))
10771083 #make_all(4, '', pyver='3.4', rootdir=r'D:\Winpython',
0 commit comments