Mercurial > cpython-lru_cache-weakref
annotate Mac/Relnotes-source @ 3470:b38fdb008f1d legacy-trunk
Updated to reflect new situation, added a warning on fmmodule.c
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 20 Mar 1996 16:27:30 +0000 |
| parents | 54f0678757b0 |
| children | 811a7ff783b7 |
| 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 |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
4 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
|
5 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
|
6 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
|
7 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
|
8 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
|
9 you work later. |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
10 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
11 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
|
12 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
|
13 |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
14 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
|
15 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
|
16 to remove references to them. |
|
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 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
|
19 .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
|
20 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
|
21 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
22 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
|
23 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
|
24 |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
25 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
|
26 convention: |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
27 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
|
28 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
|
29 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
|
30 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
|
31 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
|
32 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
|
33 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
34 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
|
35 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
|
36 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
|
37 |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
38 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
|
39 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
|
40 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
|
41 python folder. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
42 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
43 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
|
44 preferences file. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
45 |
|
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
46 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
|
47 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
48 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
|
49 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
|
50 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
|
51 "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
|
52 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
|
53 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
|
54 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
|
55 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
56 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
|
57 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
|
58 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
|
59 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
|
60 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
61 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
|
62 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
|
63 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
64 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
|
65 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
|
66 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
|
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 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
|
69 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
|
70 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
71 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
|
72 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
|
73 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
|
74 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
|
75 input file dialog. |
|
3302
54f0678757b0
(Minimal) instructions on how to build python from source
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
76 |
|
3470
b38fdb008f1d
Updated to reflect new situation, added a warning on fmmodule.c
Jack Jansen <jack.jansen@cwi.nl>
parents:
3302
diff
changeset
|
77 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
|
78 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
|
79 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
|
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 Jack Jansen, CWI, 18 March 1996. |
