comparison Mac/scripts/ConfigurePython.py @ 15210:d2c205c36d8a legacy-trunk

If we're installing to another partition than the system partition offer to copy PythonCore in stead of aliasing it. This should fix the applet problems some people have.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 13 Oct 2000 23:33:34 +0000
parents e9f5985b6ea4
children 07ffb0c3bd5e
comparison
equal deleted inserted replaced
15209:9f3077506d1a 15210:d2c205c36d8a
16 SPLASH_LOCATE=512 16 SPLASH_LOCATE=512
17 SPLASH_REMOVE=513 17 SPLASH_REMOVE=513
18 SPLASH_CFM68K=514 18 SPLASH_CFM68K=514
19 SPLASH_PPC=515 19 SPLASH_PPC=515
20 SPLASH_NUMPY=516 20 SPLASH_NUMPY=516
21 ALERT_NONBOOT=517
22 ALERT_NONBOOT_COPY=1
23 ALERT_NONBOOT_ALIAS=2
21 24
22 ppc_goals = [ 25 ppc_goals = [
23 ## ("AE.ppc.slb", "toolboxmodules.ppc.slb"), 26 ## ("AE.ppc.slb", "toolboxmodules.ppc.slb"),
24 ## ("Ctl.ppc.slb", "toolboxmodules.ppc.slb"), 27 ## ("Ctl.ppc.slb", "toolboxmodules.ppc.slb"),
25 ## ("Dlg.ppc.slb", "toolboxmodules.ppc.slb"), 28 ## ("Dlg.ppc.slb", "toolboxmodules.ppc.slb"),
132 src = altsrc 135 src = altsrc
133 try: 136 try:
134 os.unlink(dst) 137 os.unlink(dst)
135 except os.error: 138 except os.error:
136 pass 139 pass
137 macostools.mkalias(os.path.join(sys.exec_prefix, src), dst) 140 do_copy = 0
141 if macfs.FSSpec(sys.exec_prefix).as_tuple()[0] != -1: # XXXX
142 try:
143 import Dlg
144 rv = Dlg.CautionAlert(ALERT_NONBOOT, None)
145 if rv == ALERT_NONBOOT_COPY:
146 do_copy = 1
147 except ImportError:
148 pass
149 if do_copy:
150 macostools.copy(os.path.join(sys.exec_prefix, src), dst)
151 else:
152 macostools.mkalias(os.path.join(sys.exec_prefix, src), dst)
138 if verbose: print ' ', dst, '->', src 153 if verbose: print ' ', dst, '->', src
139 return 1 154 return 1
140 155
141 156
142 def main(): 157 def main():