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