Guido van Rossum | 8ce65b4 | 1994-08-29 08:58:39 +0000 | [diff] [blame^] | 1 | From: walker@island.com (Richard Walker) |
| 2 | Date: Wed, 1 Jun 94 15:28:40 PDT |
| 3 | |
| 4 | Compiling Python Under MPW C |
| 5 | ============================ |
| 6 | |
| 7 | This directory contains the Makefiles, source files and scripts |
| 8 | required to compile Python under MPW C. |
| 9 | |
| 10 | Compiling: |
| 11 | ---------- |
| 12 | the "buildall" file at the top level is an MPW script |
| 13 | which rebuilds the entire Python source. |
| 14 | |
| 15 | To build, start the MPW Shell and select the Worksheet window. |
| 16 | Go to top level directory of the Python source tree. |
| 17 | Type: buildall<ENTER> |
| 18 | |
| 19 | To rebuild: |
| 20 | Type: buildall clean<ENTER> |
| 21 | Type: buildall<ENTER> |
| 22 | |
| 23 | Configuration: |
| 24 | -------------- |
| 25 | The files "Makefile", "config.h", "Modules:config.c" and |
| 26 | "Modules:Makefile" are normally configured and/or generated |
| 27 | automagically under Unix. |
| 28 | |
| 29 | Macintosh programmers will have to be content with editing |
| 30 | these files manually to reflect their desired configuration. |
| 31 | The files provided here are examples only; Modules which |
| 32 | made it into this version are those which required little or |
| 33 | no modification. |
| 34 | |
| 35 | Running: |
| 36 | -------- |
| 37 | The top-level Makefile compiles Python as an MPW Tool. |
| 38 | You can then run Python interactively from within |
| 39 | the MPW Worksheet. |
| 40 | |
| 41 | Diagnostics: |
| 42 | ------------ |
| 43 | If Python fails to run by aborting in file "Parser:grammar1.c", |
| 44 | at the end of the function "finddfa", line 46, |
| 45 | try defining the preprocessor symbol "MPW_881_BUG" in |
| 46 | file "Parser:acceler.c", function "fixstate", line 107. |
| 47 | |
| 48 | XXX Note that you have to edit test_grammar.py because of a bug |
| 49 | in int overflow det that I haven't found yet. |