@@ -273,7 +273,7 @@ def get_package_fname(self, pattern):
273
273
return osp .abspath (osp .join (path , fname ))
274
274
else :
275
275
raise RuntimeError (
276
- 'Could not found required package matching %s' % pattern )
276
+ 'Could not find required package matching %s' % pattern )
277
277
278
278
def install_package (self , pattern , install_options = None ):
279
279
"""Install package matching pattern"""
@@ -445,24 +445,16 @@ def _install_required_packages(self):
445
445
"""Installing required packages"""
446
446
print ("Installing required packages" )
447
447
448
- # Install First these two packages to support wheel format
449
- if self .python_version == '3.3' :
450
- self .install_package ('get-pip-([0-9\.]*[a-z]*[0-9]?).%s(-py%s)?.exe'
451
- % (self .py_arch , self .python_version ))
452
- if self .python_version == '2.7' or self .python_version == '3.4' :
453
- self .install_package ('%s-([0-9\.]*[a-z]*[0-9]?)(.*)(\.exe|\.whl)' %
454
- 'setuptools' )
455
-
456
448
#Pyqt5 (doesn't currently install in build this way, reason unclear)
457
449
#self.install_package(
458
450
# 'PyQt5-([0-9\.\-]*)-gpl-Py%s-Qt([0-9\.\-]*)%s.exe'
459
451
# % (self.python_version, self.pyqt_arch))
460
452
461
453
# Install 'critical' packages first
462
- for happy_few in ['pip' , 'wheel' , 'pywin32' , 'six' , 'numpy' , 'spyder' ,
463
- 'scipy' , 'matplotlib' , 'pandas' ]:
454
+ for happy_few in ['setuptools' , 'pip' , 'pywin32' ]:
464
455
self .install_package (
465
- '%s-([0-9\.]*[a-z\+]*[0-9]?)(.*)(\.exe|\.whl)' % happy_few )
456
+ '%s-([0-9\.]*[a-z\+]*[0-9]?)(.*)(\.exe|\.whl)' % happy_few ,
457
+ install_options = self .install_options + ['--upgrade' ])
466
458
467
459
def _install_all_other_packages (self ):
468
460
"""Try to install all other packages in wheeldir"""
@@ -1160,7 +1152,7 @@ def make_winpython(build_number, release_level, architecture,
1160
1152
if osp .isdir (flavor_docs ):
1161
1153
docsdirs .append (flavor_docs )
1162
1154
1163
- install_options = ['--no-index' , '--upgrade ' , '--find-links=%s' % wheeldir ]
1155
+ install_options = ['--no-index' , '--pre ' , '--find-links=%s' % wheeldir ]
1164
1156
1165
1157
dist = WinPythonDistribution (build_number , release_level ,
1166
1158
builddir , wheeldir , toolsdirs ,
0 commit comments