blob: 45c192e9bb503f635f715b906d7a4b4a8650eec4 [file] [log] [blame]
Jack Jansen05249f96f1995-09-01 11:49:11 +00001How to install Python 1.3beta3 on your Macintosh
2------------------------------------------------
3
4Even if you don't usually read readme files: please read at least the
5first sections of this file, failure to do so will probably result in
6an unuseable python system. If this warning is too late and you already
7have an non-functional python: it is best to remove all traces and start
8with a fresh distribution. Especially don't forget to remove the
9"python preferences" file from the Preferences folder, and possibly
10"PythonCore" from the Extensions folder.
11
12Next: this is a beta distribution, so (a) things may be broken and (b)
13the instructions are probably far from complete (or correct:-). I'm counting
14on you to send me feedback on any problems you encounter or suggestions
15you have!
16
17If this is your first encounter with python: you definitely need the common
18user documentation (common to all platforms). You can find this (in various
Jack Jansen59fcc5a1995-09-24 21:08:22 +000019forms) on www.python.org and ftp.python.org.
Jack Jansen05249f96f1995-09-01 11:49:11 +000020
21If you have a pre-system 7 macintosh: sorry, this release will not work
22on your system. Too many sys7 features are used to make a sys6 python
23easy to create. If you really want one: tell me, maybe I can be convinced.
24Alternatively: get the sources, put in the necessary gestalt() and
25compatability calls yourself and send me the results.
26
27If you don't have enough memory: the sizes choosen are somewhat arbitrary.
28Try lowering them and seeing whether the resulting python is still usable.
Jack Jansen81507601995-10-03 14:40:35 +000029Note, however, that python running out of memory may result in your mac
30freezing. I don't fully understand yet why the mac freezes instead of doing
31something a little less drastic.
Jack Jansen05249f96f1995-09-01 11:49:11 +000032
33PowerPC Macintosh instructions
34------------------------------
35
361. You will have to create some aliases in the 'PlugIns' folder. There is
37 an AppleScript there that will create them for you. If you don't have
38 AppleScript you will have to create the aliases by hand, read the script
39 to see what to do. Alternatively, if you have still have an older, but
40 fairly recent version of python already on your system: try the
41 MkPluginAliases script from the Scripts folder.
42
43 [If someone nows of a way to create relative aliases or of a simple way
44 to create aliases on a target system without knowing pathnames in advance:
45 please let me know]
46
472. At this point you should remove older versions of "PythonCore" and
48 "Python Preferences" from your system folder.
49
503. Next, you should run PythonPPC. This will create an initial preferences
51 file (after asking you if that's ok with you).
52
534. To make sure any applets you create can find the common interpreter code
Jack Jansen59fcc5a1995-09-24 21:08:22 +000054 you should move PythonCore to the Extensions folder (drop it on the
55 System Folder and it will find its own way). Alternatively, you can
56 make an alias called "PythonCore" in the Extensions folder and
57 point it to the real PythonCore. You may want to start PythonPPC
58 again at this point to check that you actually put the extension in
59 the right place.
60
Jack Jansen05249f96f1995-09-01 11:49:11 +0000615. You're all set now. Continue with the common instructions.
62
6368K Macintosh instructions
64--------------------------
65
661. Remove old "Python Preferences" file from the Preferences folder, if you
67 have one (the file, that is, not the folder:-).
68
692. Run Python68K. This will create an initial preferences file (after
70 asking you if that's ok with you).
71
723. Continue with the next section.
73
74Common instructions
75-------------------
76
77You should now have a functioning python. It is probably a good idea to run
78"testall.py" from :Lib:test at this point, this should not give any errors.
Jack Jansen81507601995-10-03 14:40:35 +000079Running testall.py is done by double-clicking it or dropping it onto the
80interpreter.
Jack Jansen05249f96f1995-09-01 11:49:11 +000081Next, try "compileall.py" from :Lib to create all .pyc files (but this isn't
82really important).
83
84PPC users have a couple of applets in the main folder they may want to try,
85(68K users can use the corresponding scripts from the "scripts" folder):
86
87- EditPythonPrefs allows you to edit the preferences file, to change the
88 python home folder or modify the initial sys.path setting.
89- RunLibScript allows you to run any script as __main__ after setting arguments,
90 changing stdin/stdout/workdir, etc.
91- For PPC only, mkapplet creates a python applet, a tiny application written
92 in python. Drop a python source on it and out comes the application. More
93 information can be found in the "Read me files" folder.
94
95PPC users will see one more files in the python folder: PythonApplet. This is
96the template for building applets, leave it alone.
97
98Things to see
99-------------
100
101There are some readme files in the "Read me files" folder that may contain
102useful information. Especially the Relnotes-1.3 file contains some interesting
103tidbits.
104
105The "scripts" folder has some sample scripts. Some are useful, some are just
106interesting to look at to see how various things work. The MkDistr, mkapplet
107and fullbuild scripts (plus the ones mentioned above) may help you to understand
108how to use AppleEvents and various other toolboxes from python.
109
110The Tools folder has all the (automatically generated) interfaces to toolboxes
111available, and some simple test programs. See the scripts mentioned above for how
112to use them. NOTE: the organization of the toolbox stuff is likely to change,
113maybe even before the real 1.3 distribution. Until that time you will have to
114use addpack or imp to import these files in your program.
115
116The 'img' group of modules, which handles I/O of many different image formats
117(not pict yet, sigh:-) is included, but without documentation. You can find
118docs at ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
119
120Feedback
121--------
122
123Send bug reports, suggestions, contributions and fanmail to <jack@cwi.nl>.
124Be warned however that I'm pretty busy at the moment, so I may not always
125respond immedeately.
126Alternatively, you can try sending to comp.lang.python or python-list@cwi.nl,
127but since I read the newsgroup, not the mailinglist, I may miss it there
128(but other people may know quite a bit more than me anyway:-).
129
130 Jack Jansen
131 Centrum voor Wiskunde en Informatica
132 Kruislaan 413
133 1098 SJ Amsterdam
134 the Netherlands
135
136 <jack@cwi.nl>, http://www.cwi.nl/~jack