From 4e355c9e48658461c7e34ff0a9b77c8f06be2e8e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 Dec 2014 09:30:52 +0530 Subject: [PATCH] Verify existence of installers after stage2 --- setup/publish.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup/publish.py b/setup/publish.py index fc6e749b96..2f89738f26 100644 --- a/setup/publish.py +++ b/setup/publish.py @@ -8,7 +8,7 @@ __docformat__ = 'restructuredtext en' 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 class Stage1(Command): @@ -98,6 +98,11 @@ class Stage2(Command): 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)) + 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): description = 'Stage 3 of the publish process'