summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-24 19:44:17 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-24 19:44:17 (GMT)
commit919d3267ffe362a1d2abb5da88ac0e2eeac9dfad (patch)
treed44a82ed0bc76ad0a955770e0cf1c3fef402a290
parent5199c54e38e9b28c84e3c8a05f05a170d86e20b6 (diff)
downloadcpython-919d3267ffe362a1d2abb5da88ac0e2eeac9dfad.zip
cpython-919d3267ffe362a1d2abb5da88ac0e2eeac9dfad.tar.gz
cpython-919d3267ffe362a1d2abb5da88ac0e2eeac9dfad.tar.bz2
Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without posting the dialog. This is the normal situation since 1.6alfa (no more 68k support).
-rw-r--r--Mac/scripts/BuildApplication.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mac/scripts/BuildApplication.py b/Mac/scripts/BuildApplication.py
index 6f55eb1..bf44ebd 100644
--- a/Mac/scripts/BuildApplication.py
+++ b/Mac/scripts/BuildApplication.py
@@ -34,6 +34,9 @@ GENFAT_BUTTON = 4
GENPPC_BUTTON = 5
GEN68K_BUTTON = 6
+# Define this if we cannot generate 68/fat binaries (Python 1.6)
+PPC_ONLY=1
+
try:
Res.GetResource('DITL', DLG_ID)
@@ -108,6 +111,8 @@ class radio:
def interact(scriptname):
+ if PPC_ONLY:
+ return 'pwpc'
d = Dlg.GetNewDialog(DLG_ID, -1)
if not d:
print "Can't get DLOG resource with id =", DLG_ID