mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Verify existence of installers after stage2
This commit is contained in:
		
							parent
							
								
									eedd0a6dfb
								
							
						
					
					
						commit
						4e355c9e48
					
				@ -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'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user