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