diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-02-17 23:31:48 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-02-17 23:31:48 (GMT) |
commit | cbb5d4972f07423ce51d6181ffad8b14b07594bf (patch) | |
tree | d054e114a5db011540b8bb9372e854987ba23bfe /Mac/scripts/fullbuild.py | |
parent | a4f8e580588b7ebd5fde61debab3fdb72f37cdec (diff) | |
download | cpython-cbb5d4972f07423ce51d6181ffad8b14b07594bf.zip cpython-cbb5d4972f07423ce51d6181ffad8b14b07594bf.tar.gz cpython-cbb5d4972f07423ce51d6181ffad8b14b07594bf.tar.bz2 |
ConfigurePython now comes in two flavors: ConfigurePythonClassic and ConfigurePythonCarbon, which copy the respective interpreters to PythonInterpreter and rebuild all the applets. This allows MacOS9 users to switch back and forth.
Diffstat (limited to 'Mac/scripts/fullbuild.py')
-rw-r--r-- | Mac/scripts/fullbuild.py | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/Mac/scripts/fullbuild.py b/Mac/scripts/fullbuild.py index 0750a46..48c4539 100644 --- a/Mac/scripts/fullbuild.py +++ b/Mac/scripts/fullbuild.py @@ -126,8 +126,8 @@ def buildmwproject(top, creator, projects): def buildapplet(top, dummy, list): """Create python applets""" - template = buildtools.findtemplate() - for src, dst in list: + for src, dst, tmpl in list: + template = buildtools.findtemplate(tmpl) if src[-3:] != '.py': raise 'Should end in .py', src base = os.path.basename(src) @@ -138,7 +138,10 @@ def buildapplet(top, dummy, list): except os.error: pass print 'Building applet', dst - buildtools.process(template, src, dst, 1) + try: + buildtools.process(template, src, dst, 1) + except buildtools.BuildError, arg: + print '**', dst, arg def buildprojectfile(top, arg, list): """Create CodeWarrior project files with a script""" @@ -331,13 +334,15 @@ I_CARBON_EXTENSIONS : (buildmwproject, "CWIE", [ ]), I_APPLETS : (buildapplet, None, [ - (":Mac:scripts:EditPythonPrefs.py", "EditPythonPrefs"), - (":Mac:scripts:BuildApplet.py", "BuildApplet"), - (":Mac:scripts:BuildApplication.py", "BuildApplication"), - (":Mac:scripts:ConfigurePython.py", "ConfigurePython"), - (":Mac:Tools:IDE:PythonIDE.py", "Python IDE"), - (":Mac:Tools:CGI:PythonCGISlave.py", ":Mac:Tools:CGI:PythonCGISlave"), - (":Mac:Tools:CGI:BuildCGIApplet.py", ":Mac:Tools:CGI:BuildCGIApplet"), + (":Mac:scripts:EditPythonPrefs.py", "EditPythonPrefs", None), + (":Mac:scripts:BuildApplet.py", "BuildApplet", None), + (":Mac:scripts:BuildApplication.py", "BuildApplication", None), + (":Mac:scripts:ConfigurePython.py", "ConfigurePython", None), + (":Mac:scripts:ConfigurePython.py", "ConfigurePythonCarbon", "PythonInterpreterCarbon"), + (":Mac:scripts:ConfigurePython.py", "ConfigurePythonClassic", "PythonInterpreterClassic"), + (":Mac:Tools:IDE:PythonIDE.py", "Python IDE", None), + (":Mac:Tools:CGI:PythonCGISlave.py", ":Mac:Tools:CGI:PythonCGISlave", None), + (":Mac:Tools:CGI:BuildCGIApplet.py", ":Mac:Tools:CGI:BuildCGIApplet", None), ]), } |