@@ -445,11 +445,17 @@ def _install_required_packages(self):
445
445
"""Installing required packages"""
446
446
print ("Installing required packages" )
447
447
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 ))
448
454
# Install 'critical' packages first
449
455
for happy_few in ['setuptools' , 'pip' , 'pywin32' ]:
450
456
self .install_package (
451
457
'%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' ])
453
459
454
460
def _install_all_other_packages (self ):
455
461
"""Try to install all other packages in wheeldir"""
@@ -528,7 +534,7 @@ def _create_launchers(self):
528
534
QtDemo_path = 'demos\qtdemo' if QtV == 4 else 'qtdemo'
529
535
if osp .isdir (osp .join (python_lib_dir , PyQt )):
530
536
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 =
532
538
r'${WINPYDIR}\Lib\site-packages\%s\examples\%s' %
533
539
(PyQt , QtDemo_path ) )
534
540
self .create_launcher ('Qt%s Assistant.exe' % QtV ,
@@ -1068,10 +1074,10 @@ def make_all(build_number, release_level, pyver,
1068
1074
1069
1075
#make_all(4, '', pyver='3.4', rootdir=r'D:\Winpython',
1070
1076
# 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 , ))
1075
1081
#make_all(1, '', pyver='2.7', rootdir=r'D:\Winpython',
1076
1082
# verbose=False, archis=(64, ))
1077
1083
#make_all(4, '', pyver='3.4', rootdir=r'D:\Winpython',
0 commit comments