]> granicus.if.org Git - python/commitdiff
Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without...
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 24 Jul 2000 19:44:17 +0000 (19:44 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 24 Jul 2000 19:44:17 +0000 (19:44 +0000)
Mac/scripts/BuildApplication.py

index 6f55eb1cb1619b4b84e75eae148bc0204b7d7193..bf44ebd6cfa17a8842ec6d5f10312b7424393366 100644 (file)
@@ -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