summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/ConfigurePython.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-08 16:27:44 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-08 16:27:44 (GMT)
commit3e82872ecaa642ff8bab89c4323d1c3b09981665 (patch)
treed0987955c48352ec147d6ad0113fe4845a578546 /Mac/scripts/ConfigurePython.py
parent6c64fa7ddadd7a3a24e8ddab7fd4ed9236fef1c3 (diff)
downloadcpython-3e82872ecaa642ff8bab89c4323d1c3b09981665.zip
cpython-3e82872ecaa642ff8bab89c4323d1c3b09981665.tar.gz
cpython-3e82872ecaa642ff8bab89c4323d1c3b09981665.tar.bz2
Merging the various tweaks for MacPython-OS9 2.3a1 back into the trunk.
Diffstat (limited to 'Mac/scripts/ConfigurePython.py')
-rw-r--r--Mac/scripts/ConfigurePython.py29
1 files changed, 1 insertions, 28 deletions
diff --git a/Mac/scripts/ConfigurePython.py b/Mac/scripts/ConfigurePython.py
index 2b59d60..99f39ac 100644
--- a/Mac/scripts/ConfigurePython.py
+++ b/Mac/scripts/ConfigurePython.py
@@ -160,9 +160,8 @@ def main():
# Create the PythonCore alias(es)
MacOS.splash(SPLASH_COPYCORE)
if verbose:
- print "Copying PythonCore..."
+ print "Copying PythonCoreCarbon..."
n = 0
- n = n + mkcorealias('PythonCore', 'PythonCore')
n = n + mkcorealias('PythonCoreCarbon', 'PythonCoreCarbon')
if n == 0:
from Carbon import Dlg
@@ -170,32 +169,6 @@ def main():
if verbose:
print "Warning: PythonCore not copied to Extensions folder"
print " (Applets will not work unless run from the Python folder)"
- if sys.argv[0][-7:] == 'Classic':
- do_classic = 1
- elif sys.argv[0][-6:] == 'Carbon':
- do_classic = 0
- else:
- print "I don't know the sys.argv[0] function", sys.argv[0]
- if verbose:
- print "Configure classic or carbon - ",
- rv = string.strip(sys.stdin.readline())
- while rv and rv != "classic" and rv != "carbon":
- print "Configure classic or carbon - ",
- rv = string.strip(sys.stdin.readline())
- if rv == "classic":
- do_classic = 1
- elif rv == "carbon":
- do_classic = 0
- else:
- return
- else:
- sys.exit(1)
- if do_classic:
- MacOS.splash(SPLASH_COPYCLASSIC)
- buildcopy(sys.prefix, None, [("PythonInterpreterClassic", "PythonInterpreter")])
- else:
- MacOS.splash(SPLASH_COPYCARBON)
- buildcopy(sys.prefix, None, [("PythonInterpreterCarbon", "PythonInterpreter")])
MacOS.splash(SPLASH_BUILDAPPLETS)
buildapplet(sys.prefix, None, APPLET_LIST)