Skip to content

Commit d370793

Browse files
author
stonebig
committed
simplify and improve build process
(no more python 3.3 to take care of)
1 parent d0b7968 commit d370793

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

make.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def get_package_fname(self, pattern):
273273
return osp.abspath(osp.join(path, fname))
274274
else:
275275
raise RuntimeError(
276-
'Could not found required package matching %s' % pattern)
276+
'Could not find required package matching %s' % pattern)
277277

278278
def install_package(self, pattern, install_options=None):
279279
"""Install package matching pattern"""
@@ -445,24 +445,16 @@ def _install_required_packages(self):
445445
"""Installing required packages"""
446446
print("Installing required packages")
447447

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-
456448
#Pyqt5 (doesn't currently install in build this way, reason unclear)
457449
#self.install_package(
458450
# 'PyQt5-([0-9\.\-]*)-gpl-Py%s-Qt([0-9\.\-]*)%s.exe'
459451
# % (self.python_version, self.pyqt_arch))
460452

461453
# 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']:
464455
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'])
466458

467459
def _install_all_other_packages(self):
468460
"""Try to install all other packages in wheeldir"""
@@ -1160,7 +1152,7 @@ def make_winpython(build_number, release_level, architecture,
11601152
if osp.isdir(flavor_docs):
11611153
docsdirs.append(flavor_docs)
11621154

1163-
install_options = ['--no-index', '--upgrade', '--find-links=%s' % wheeldir]
1155+
install_options = ['--no-index', '--pre', '--find-links=%s' % wheeldir]
11641156

11651157
dist = WinPythonDistribution(build_number, release_level,
11661158
builddir, wheeldir, toolsdirs,

0 commit comments

Comments
 (0)