Mercurial > cpython-lru_cache-weakref
annotate Mac/Relnotes-source @ 4566:6403c94de50d legacy-trunk
Added safeguard against failure in __del__.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 27 Nov 1996 19:39:58 +0000 |
| parents | 811a7ff783b7 |
| children | 95d6e17955ef |
| rev | line source |
|---|---|
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1 How to build Python from a source distribution. |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
2 ----------------------------------------------- |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
3 |
|
4160
811a7ff783b7
Added note that these instruction are for a full source distribution,
Jack Jansen <jack.jansen@cwi.nl>
parents:
3470
diff
changeset
|
4 NOTE: These notes are for building a Python from a machine-independent |
|
811a7ff783b7
Added note that these instruction are for a full source distribution,
Jack Jansen <jack.jansen@cwi.nl>
parents:
3470
diff
changeset
|
5 source distribution, *not* for building a Python from a mac-specific |
|
811a7ff783b7
Added note that these instruction are for a full source distribution,
Jack Jansen <jack.jansen@cwi.nl>
parents:
3470
diff
changeset
|
6 source distribution. |
|
811a7ff783b7
Added note that these instruction are for a full source distribution,
Jack Jansen <jack.jansen@cwi.nl>
parents:
3470
diff
changeset
|
7 |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
8 You will need a Python source distribution in tar form. So, the |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
9 first thing you need is a tar program for the mac. Suntar is |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
10 reasonable and can be found at the info-mac sites. Edit the |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
11 preferences to make it extract C sources with creator CWIE |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
12 and .py files as text files with creator Pyth, this will save |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
13 you work later. |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
14 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
15 You will also need CodeWarrior 8. If you have another development |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
16 environment you are on your own, basically. |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
17 |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
18 You may also need the img distribution and the stdwin distribution. |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
19 If you don't want them you may have to edit some of the projects |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
20 to remove references to them. |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
21 |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
22 When you've extracted everything you may have to unpack the |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
23 .hqx files in Mac:Resources and Mac:mwerks:Projects (but suntar |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
24 may have done this for you already). |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
25 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
26 You have to remove Modules:fmmodule.c, the SGI fm module, which has a |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
27 name conflict with the Mac Fmmodule.c. |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
28 |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
29 Next, create your build directories. I use the following naming |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
30 convention: |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
31 build.macppc.shared PowerPC shared-library |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
32 build.mac68k.stand 68K non-shared |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
33 and there are also projects for ppc standalone and some others, they |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
34 may be useful at times. The project files expect the build directories |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
35 to be located right in the main python folder, if you put them elsewhere |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
36 you will have to edit the access paths. |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
37 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
38 Move MWCPythonCoreRuntime.µ, PythonCore.µ, PythonPPC.µ and |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
39 PythonApplet.µ (from the Mac:mwerks:projects folder) to |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
40 build.macppc.shared, move Python68K.µ to build.mac68k.stand. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
41 |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
42 Build the projects. For the PPC projects, keep the order given above. |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
43 Do *not* run the python interpreter yet. First, move the interpreter |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
44 to the main python folder. For PPC, also move PythonCore to the main |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
45 python folder. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
46 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
47 Now try your python interpreter, this will create an initial |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
48 preferences file. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
49 |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
50 For 68K python you are now done. |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
51 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
52 For PPC Python, don't try complicated scripts yet, you first have to |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
53 create the dynamically loadable modules. Create a folder PlugIns (in |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
54 the toplevel python folder) and move all the projects that have |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
55 "module" or "modules" in their name there. Build these projects. This |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
56 will create a number of ".exp" files, edit these files to contain only |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
57 all the "init" modules, and build the projects again. This latter step |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
58 isn't really essential, so feel free to skip it. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
59 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
60 The next step is to create aliases for the various modules that "live |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
61 together" in one shared library. For this, take MkPluginAliases.py and |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
62 MkPluginAliases.rsrc from the Mac:scripts folder and move or copy them |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
63 to the python home folder. Run the script from there. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
64 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
65 If you haven't created all plugins you'll get some errors about files |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
66 not existing, don't worry. Don't forget to move the scripts back. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
67 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
68 Next, make an alias of PythonCore (also named PythonCore) and put it |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
69 in System Folder:Extensions. This will ensure that you can run python |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
70 anywhere, not just from the folder where PythonCore lives. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
71 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
72 Most of your environment is now setup. You can try it by running |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
73 EditPythonPrefs.py (in Mac:scripts), it should now work from there. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
74 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
75 Lastly, you should setup some stuff needed for applet creation. First, |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
76 you should put PythonApplet (or an alias to it) in the python home |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
77 folder. Next, you should turn mkapplet.py (from mac:scripts) into an |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
78 applet itself: double-click it and give it itself as input in the |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
79 input file dialog. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
80 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
81 Now that you have created mkapplet you can use this as a droplet: |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
82 drag-and-drop python sources onto it (EditPythonPrefs.py and |
|
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
83 RunLibScript.py come to mind) and the applets will be created. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
84 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
85 Jack Jansen, CWI, 18 March 1996. |
