Verify existence of installers after stage2

This commit is contained in:
Kovid Goyal 2014-12-26 09:30:52 +05:30
parent eedd0a6dfb
commit 4e355c9e48

View File

@ -8,7 +8,7 @@ __docformat__ = 'restructuredtext en'
import os, shutil, subprocess, glob, tempfile, json, time, filecmp, atexit, sys import os, shutil, subprocess, glob, tempfile, json, time, filecmp, atexit, sys
from setup import Command, __version__, require_clean_git, require_git_master from setup import Command, __version__, require_clean_git, require_git_master, installer_name
from setup.parallel_build import parallel_build from setup.parallel_build import parallel_build
class Stage1(Command): class Stage1(Command):
@ -98,6 +98,11 @@ class Stage2(Command):
for p in sorted(processes, key=lambda p:p.duration): for p in sorted(processes, key=lambda p:p.duration):
self.info('Built %s in %d minutes and %d seconds' % (p.bname, p.duration // 60, p.duration % 60)) self.info('Built %s in %d minutes and %d seconds' % (p.bname, p.duration // 60, p.duration % 60))
for ext, is64bit in {'msi': True, 'msi':False, 'exe':False, 'dmg':True, 'txz':True, 'txz':False}.iteritems():
installer = installer_name(ext, is64bit)
if not os.path.exists(self.j(self.d(self.SRC), installer)):
raise SystemExit('The installer %s does not exist' % os.path.basename(installer))
class Stage3(Command): class Stage3(Command):
description = 'Stage 3 of the publish process' description = 'Stage 3 of the publish process'