Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 1 | How to build Python from a source distribution. |
| 2 | ----------------------------------------------- |
| 3 | |
Jack Jansen | a78d76d | 1996-08-28 13:50:21 +0000 | [diff] [blame] | 4 | NOTE: These notes are for building a Python from a machine-independent |
| 5 | source distribution, *not* for building a Python from a mac-specific |
| 6 | source distribution. |
| 7 | |
Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 8 | You will need a Python source distribution in tar form. So, the |
| 9 | first thing you need is a tar program for the mac. Suntar is |
| 10 | reasonable and can be found at the info-mac sites. Edit the |
| 11 | preferences to make it extract C sources with creator CWIE |
Jack Jansen | 857e88e | 1996-03-20 16:27:30 +0000 | [diff] [blame] | 12 | and .py files as text files with creator Pyth, this will save |
Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 13 | you work later. |
| 14 | |
Jack Jansen | 7701fd9 | 1997-05-28 12:01:14 +0000 | [diff] [blame^] | 15 | You will also need CodeWarrior 11. If you have another development |
Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 16 | environment you are on your own, basically. |
| 17 | |
Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 18 | When you've extracted everything you may have to unpack the |
Jack Jansen | 857e88e | 1996-03-20 16:27:30 +0000 | [diff] [blame] | 19 | .hqx files in Mac:Resources and Mac:mwerks:Projects (but suntar |
Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 20 | may have done this for you already). |
| 21 | |
Jack Jansen | 857e88e | 1996-03-20 16:27:30 +0000 | [diff] [blame] | 22 | You have to remove Modules:fmmodule.c, the SGI fm module, which has a |
| 23 | name conflict with the Mac Fmmodule.c. |
| 24 | |
Jack Jansen | 7701fd9 | 1997-05-28 12:01:14 +0000 | [diff] [blame^] | 25 | |
Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 26 | Next, create your build directories. I use the following naming |
| 27 | convention: |
| 28 | build.macppc.shared PowerPC shared-library |
| 29 | build.mac68k.stand 68K non-shared |
| 30 | and there are also projects for ppc standalone and some others, they |
| 31 | may be useful at times. The project files expect the build directories |
| 32 | to be located right in the main python folder, if you put them elsewhere |
| 33 | you will have to edit the access paths. |
| 34 | |
Jack Jansen | 857e88e | 1996-03-20 16:27:30 +0000 | [diff] [blame] | 35 | Move MWCPythonCoreRuntime.µ, PythonCore.µ, PythonPPC.µ and |
| 36 | PythonApplet.µ (from the Mac:mwerks:projects folder) to |
| 37 | build.macppc.shared, move Python68K.µ to build.mac68k.stand. |
Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 38 | |
Jack Jansen | 7701fd9 | 1997-05-28 12:01:14 +0000 | [diff] [blame^] | 39 | Now, your folder structure more-or-less resembles that of what comes |
| 40 | with the mac source distribution. Read the file Mac:Demo:building.html |
| 41 | for further instructions. |
Jack Jansen | b678975 | 1995-12-21 15:40:26 +0000 | [diff] [blame] | 42 | |
Jack Jansen | 7701fd9 | 1997-05-28 12:01:14 +0000 | [diff] [blame^] | 43 | Jack Jansen, CWI, 28 May 1997. |