Mercurial > cpython-lru_cache-weakref
annotate Mac/scripts/fullbuild.py @ 4566:6403c94de50d legacy-trunk
Added safeguard against failure in __del__.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 27 Nov 1996 19:39:58 +0000 |
| parents | fd524a001ce9 |
| children | 98213604f941 |
| rev | line source |
|---|---|
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1 # |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
2 # fullbuild creates everything that needs to be created before a |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
3 # distribution can be made, and puts it all in the right place. |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
4 # |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
5 # It expects the projects to be in the places where Jack likes them: |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
6 # in directories named like 'build.macppc.shared'. That is fixable, |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
7 # however. |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
8 # |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
9 # NOTE: You should proably make a copy of python with which to execute this |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
10 # script, rebuilding running programs does not work... |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
11 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
12 import os |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
13 import sys |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
14 import macfs |
|
3408
397e6d53a7ad
- AppleEvent timeout set to infinite
Jack Jansen <jack.jansen@cwi.nl>
parents:
3185
diff
changeset
|
15 import MacOS |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
16 import EasyDialogs |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
17 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
18 import addpack |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
19 import aetools |
|
3408
397e6d53a7ad
- AppleEvent timeout set to infinite
Jack Jansen <jack.jansen@cwi.nl>
parents:
3185
diff
changeset
|
20 import AppleEvents |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
21 from Metrowerks_Shell_Suite import Metrowerks_Shell_Suite |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
22 from Required_Suite import Required_Suite |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
23 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
24 import mkapplet |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
25 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
26 class MwShell(aetools.TalkTo, Metrowerks_Shell_Suite, Required_Suite): |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
27 pass |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
28 |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
29 RUNNING=[] |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
30 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
31 def buildmwproject(top, creator, projects): |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
32 """Build projects with an MW compiler""" |
|
4324
1afcd1cd333b
Use auto-start functionality of aetools.TalkTo and aetools.Error for
Jack Jansen <jack.jansen@cwi.nl>
parents:
4167
diff
changeset
|
33 mgr = MwShell(creator, start=1) |
|
3408
397e6d53a7ad
- AppleEvent timeout set to infinite
Jack Jansen <jack.jansen@cwi.nl>
parents:
3185
diff
changeset
|
34 mgr.send_timeout = AppleEvents.kNoTimeOut |
|
397e6d53a7ad
- AppleEvent timeout set to infinite
Jack Jansen <jack.jansen@cwi.nl>
parents:
3185
diff
changeset
|
35 |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
36 for file in projects: |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
37 file = os.path.join(top, file) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
38 fss = macfs.FSSpec(file) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
39 print 'Building', file |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
40 mgr.open(fss) |
|
3408
397e6d53a7ad
- AppleEvent timeout set to infinite
Jack Jansen <jack.jansen@cwi.nl>
parents:
3185
diff
changeset
|
41 try: |
|
397e6d53a7ad
- AppleEvent timeout set to infinite
Jack Jansen <jack.jansen@cwi.nl>
parents:
3185
diff
changeset
|
42 mgr.Make_Project() |
|
4324
1afcd1cd333b
Use auto-start functionality of aetools.TalkTo and aetools.Error for
Jack Jansen <jack.jansen@cwi.nl>
parents:
4167
diff
changeset
|
43 except aetools.Error, arg: |
|
1afcd1cd333b
Use auto-start functionality of aetools.TalkTo and aetools.Error for
Jack Jansen <jack.jansen@cwi.nl>
parents:
4167
diff
changeset
|
44 print '** Failed:', arg |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
45 mgr.Close_Project() |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
46 ## mgr.quit() |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
47 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
48 def buildapplet(top, dummy, list): |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
49 """Create a PPC python applet""" |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
50 template = mkapplet.findtemplate() |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
51 for src in list: |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
52 if src[-3:] != '.py': |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
53 raise 'Should end in .py', src |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
54 base = os.path.basename(src) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
55 dst = os.path.join(top, base)[:-3] |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
56 src = os.path.join(top, src) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
57 try: |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
58 os.unlink(dst) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
59 except os.error: |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
60 pass |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
61 print 'Building applet', dst |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
62 mkapplet.process(template, src, dst) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
63 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
64 # |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
65 # The build instructions. Entries are (routine, arg, list-of-files) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
66 # XXXX We could also include the builds for stdwin and such here... |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
67 PPC_INSTRUCTIONS=[ |
|
3185
c056f685c081
Adapted to CW7, added MkPluginAlises
Jack Jansen <jack.jansen@cwi.nl>
parents:
3063
diff
changeset
|
68 (buildmwproject, "CWIE", [ |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
69 ":build.macppc.shared:PythonCorePPC.µ", |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
70 ":build.macppc.shared:PythonPPC.µ", |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
71 ":build.macppc.shared:PythonAppletPPC.µ", |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
72 ]) |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
73 ] |
|
4058
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
74 CFM68K_INSTRUCTIONS=[ |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
75 (buildmwproject, "CWIE", [ |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
76 ":build.mac68k.shared:PythonCoreCFM68K.µ", |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
77 ":build.mac68k.shared:PythonCFM68K.µ", |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
78 ":build.mac68k.shared:PythonAppletCFM68K.µ", |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
79 ]) |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
80 ] |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
81 FAT_INSTRUCTIONS=[ |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
82 (buildmwproject, "CWIE", [ |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
83 ":build.macppc.shared:Python.µ", |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
84 ":build.macppc.shared:PythonApplet.µ", |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
85 ]) |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
86 ] |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
87 PLUGIN_INSTRUCTIONS=[ |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
88 (buildmwproject, "CWIE", [ |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
89 ":PlugIns:ctb.ppc.µ", |
|
4058
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
90 ":PlugIns:imgmodules.ppc.µ", |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
91 ":PlugIns:macspeech.ppc.µ", |
|
4058
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
92 ":PlugIns:toolboxmodules.ppc.µ", |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
93 ":PlugIns:qtmodules.ppc.µ", |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
94 ":PlugIns:waste.ppc.µ", |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
95 ":PlugIns:_tkinter.ppc.µ", |
|
4058
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
96 ]) |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
97 ] |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
98 CFM68KPLUGIN_INSTRUCTIONS=[ |
|
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
99 (buildmwproject, "CWIE", [ |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
100 ":PlugIns:ctb.CFM68K.µ", |
|
4471
122c8fdfe4ef
Build imgmodules.cfm68k too
Jack Jansen <jack.jansen@cwi.nl>
parents:
4324
diff
changeset
|
101 ":PlugIns:imgmodules.CFM68K.µ", |
|
4058
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
102 ":PlugIns:toolboxmodules.CFM68K.µ", |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
103 ":PlugIns:qtmodules.CFM68K.µ", |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
104 ":PlugIns:waste.CFM68K.µ", |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
105 ":PlugIns:_tkinter.CFM68K.µ", |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
106 ]) |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
107 ] |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
108 M68K_INSTRUCTIONS=[ |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
109 (buildmwproject, "CWIE", [ |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
110 ":build.mac68k.stand:Python68K.µ", |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
111 ]) |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
112 ] |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
113 PPCSTAND_INSTRUCTIONS=[ |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
114 (buildmwproject, "CWIE", [ |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
115 ":build.macppc.stand:PythonStandalone.µ", |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
116 ]) |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
117 ] |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
118 APPLET_INSTRUCTIONS=[ |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
119 (buildapplet, None, [ |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
120 ":Mac:scripts:EditPythonPrefs.py", |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
121 ":Mac:scripts:mkapplet.py", |
|
3185
c056f685c081
Adapted to CW7, added MkPluginAlises
Jack Jansen <jack.jansen@cwi.nl>
parents:
3063
diff
changeset
|
122 ":Mac:scripts:MkPluginAliases.py" |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
123 ]) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
124 ] |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
125 |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
126 ALLINST=[ |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
127 ("PPC shared executable", PPC_INSTRUCTIONS), |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
128 ("PPC plugin modules", PLUGIN_INSTRUCTIONS), |
|
4058
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
129 ("CFM68K shared executable", CFM68K_INSTRUCTIONS), |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
130 ("CFM68K plugin modules", CFM68KPLUGIN_INSTRUCTIONS), |
|
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
131 ("FAT shared executables", FAT_INSTRUCTIONS), |
|
4058
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
132 ("68K standalone executable", M68K_INSTRUCTIONS), |
|
4125
0b73c31bab90
Fixed names of vairous plugins to build, added a couple and added
Jack Jansen <jack.jansen@cwi.nl>
parents:
4058
diff
changeset
|
133 ("PPC standalone executable", PPCSTAND_INSTRUCTIONS), |
|
4058
21b28dcfa865
Adapted for cfm68k, new names and split off of qt.
Jack Jansen <jack.jansen@cwi.nl>
parents:
3933
diff
changeset
|
134 ("Applets", APPLET_INSTRUCTIONS) |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
135 ] |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
136 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
137 def main(): |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
138 dir, ok = macfs.GetDirectory('Python source folder:') |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
139 if not ok: |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
140 sys.exit(0) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
141 dir = dir.as_pathname() |
|
3502
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
142 INSTRUCTIONS = [] |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
143 for string, inst in ALLINST: |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
144 answer = EasyDialogs.AskYesNoCancel("Build %s?"%string, 1) |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
145 if answer < 0: |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
146 sys.exit(0) |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
147 if answer: |
|
61894ba571f5
Changed to allow the user to do partial builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
3462
diff
changeset
|
148 INSTRUCTIONS = INSTRUCTIONS + inst |
|
3063
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
149 for routine, arg, list in INSTRUCTIONS: |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
150 routine(dir, arg, list) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
151 print "All done!" |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
152 sys.exit(1) |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
153 |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
154 if __name__ == '__main__': |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
155 main() |
|
b333f16fb419
Build appplications, libraries and applets according to builtin
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
156 |
