mirror of https://github.com/python/cpython
- AppleEvent timeout set to infinite
- Continue even if a build fails
This commit is contained in:
parent
22586993c5
commit
1023dffb36
|
@ -12,12 +12,14 @@
|
|||
import os
|
||||
import sys
|
||||
import macfs
|
||||
import MacOS
|
||||
|
||||
import addpack
|
||||
addpack.addpack('Tools')
|
||||
addpack.addpack('bgen')
|
||||
addpack.addpack('AE')
|
||||
import aetools
|
||||
import AppleEvents
|
||||
from Metrowerks_Shell_Suite import Metrowerks_Shell_Suite
|
||||
from Required_Suite import Required_Suite
|
||||
|
||||
|
@ -38,12 +40,17 @@ def buildmwproject(top, creator, projects):
|
|||
except 'foo':
|
||||
print 'Not handled:', creator
|
||||
return
|
||||
mgr.send_timeout = AppleEvents.kNoTimeOut
|
||||
|
||||
for file in projects:
|
||||
file = os.path.join(top, file)
|
||||
fss = macfs.FSSpec(file)
|
||||
print 'Building', file
|
||||
mgr.open(fss)
|
||||
mgr.Make_Project()
|
||||
try:
|
||||
mgr.Make_Project()
|
||||
except MacOS.Error, arg:
|
||||
print '** Failed. Possible error:', arg
|
||||
mgr.Close_Project()
|
||||
mgr.quit()
|
||||
|
||||
|
|
Loading…
Reference in New Issue