blob: 9bc26444658f4983ea6cf9895e2ea8ecaf8baf33 [file] [log] [blame]
Jack Jansen0b726951997-10-08 15:34:42 +00001How to install Python 1.5a4 on your Macintosh
2---------------------------------------------
Jack Jansen83cab721997-08-26 13:25:06 +00003
4If this is your first encounter with Python: you definitely need the
5common user documentation (common to all platforms). You can find this
6(in various forms) on www.python.org and ftp.python.org. Through
7there, or via http://www.cwi.nl/~jack/macpython.html you can also find
8the most recent MacPython distribution.
9
10Mac-specific documentation is included in this distribution in folder
11Mac:Demo. The documentation is sparse, but it will have to serve for
12now. The documentation is in HTML format, start with index.html.
13
14What to install
15---------------
16
17There are three flavors of Python: PowerPC, cfm68k and Classic 68k (the
18FAT flavor is just a combination of the first two, which is handy if you
19want to install Python on a fileserver or so). 68K-mac owners should
20definitely use the cfm68k version if possible, since it enables the use
21of applets and dynamically loaded modules and usually has a smaller
22memory footprint. It does however need the CFM68K Runtime Enabler which
23is available from Apple (available for free from
24<http://support.info.apple.com/ftp/swhome.html>, included since MacOS
257.6.1). If your machine is pre-68020 you cannot use cfm68k and you can
26install the classic 68k Python.
27
Jack Jansen0b726951997-10-08 15:34:42 +000028After the installer finishes it automatically launches the
29ConfigurePython applet, to finish configuration of your Python
30installation (except for classic 68K installations, where no extra
31configuration is needed).
32
Jack Jansen83cab721997-08-26 13:25:06 +000033If you have a pre-system 7 macintosh: sorry, this release will not work
34on your system. Too many sys7 features are used to make a sys6 python
35easy to create.
36
37If you don't have enough memory: the sizes choosen are somewhat
38arbitrary. Try lowering the application sizes in the finder "get info"
39window, and seeing whether the resulting python is still usable. Some
40modules (Tkinter comes to mind) need a lot of memory, so it may also be
41necessary to increase the application size.
42
43A final note to CFM68K (and possibly PPC) users: the Code Fragment
44Manager can (incorrectly) produce "library not found" and other strange
45error messages when it really means that there is not enough room in the
46system heap. Decreasing (yes, *de*creasing) the size of the interpreter
47and/or enabling virtual memory may solve these problems.
48
49After installing
50----------------
51
Jack Jansen0b726951997-10-08 15:34:42 +000052It is probably a good idea to run the automatic tests. Start Python and
53"import test.autotest". This should not print any errors. It will,
54however, print some messages about optional features not supported.
55Running testall.py is done by double-clicking it or dropping it onto the
56interpreter.
Jack Jansen83cab721997-08-26 13:25:06 +000057
Jack Jansen0b726951997-10-08 15:34:42 +000058NOTE: as of 1.5a4 the tests test_time and test_strftime will
Jack Jansen83cab721997-08-26 13:25:06 +000059fail. This is due to a problem with the tests. test_socket may also fail
60if you have no internet connection.
61
62Next, try "compileall.py" from :Lib to create all .pyc files (but this
63isn't really important).
64
65PPC and CFM68K users have a couple of applets in the main folder they
66may want to try, (68K users can use the corresponding scripts from the
67"scripts" folder):
68
69- EditPythonPrefs allows you to edit the preferences file, to change the
70python home folder or modify the initial sys.path setting. The default
71settings are somewhat arbitrary, you can remove tkinter if you don't use
72it and possibly add Extensions:img:Lib. - mkapplet creates a python
73applet, a tiny application written in python. Drop a python source on it
74and out comes the application. More information can be found in the
75"Mac:Demo" folder.
76
Jack Jansen0b726951997-10-08 15:34:42 +000077If you have a slow machine you may want to disable automatic site.py import
78since site.py does not do too much on the mac (unless you make it do
79something), and it can take a few seconds.
80
Jack Jansen83cab721997-08-26 13:25:06 +000081PPC and CFM68K users will see one more file in the python folder:
82PythonApplet. This is the template for building applets, leave it alone.
83The applet is "fat", containing both PPC and CFM68K code. Hence, applets
84built with it can be transported to machines with the other
85architecture.
86
Jack Jansen0b726951997-10-08 15:34:42 +000087Uninstalling
88------------
89
90Two items are installed in the system folder: the interpreter shared
91library "PythonCore 1.5a4" lives in the Extensions folder and the
92"Python 1.5a4 Preferences" file in the Preferences folder. All the rest
93of Python lives in the folder you installed in.
94
Jack Jansen83cab721997-08-26 13:25:06 +000095Things to see
96-------------
97
98There are some readme files in the "Read me files" folder that may
99contain useful information. There is also a first stab at documentation
100(plus examples) in the Mac:Demo folder. The toplevel Demo folder has
101machine-independent demos. See the file Readme-mac for mac-specific
102notes. The Mac:Lib:test folder also has some programs that show simple
103capabilities of various modules.
104
105The "scripts" folder has some sample scripts. Some are useful, some are
106just interesting to look at to see how various things work. The MkDistr,
107mkapplet and fullbuild scripts (plus the ones mentioned above) may help
108you to understand how to use AppleEvents and various other toolboxes
109from python.
110
111The 'img' group of modules, which handles I/O of many different image
112formats (not pict yet, sigh:-) is included, but without documentation.
113You can find docs at ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere
114around there).
115
116Upgrading from older Python releases
117------------------------------------
118
119Since release 1.4 Python releases are independent of each other, with
120separate Preferences files, shared library names, etc. The good news is
121that this means you can keep your older version around if you are unsure
122whether to upgrade. The bad news is that your old preference settings
123are lost and you have to set them again.
124
Jack Jansen0b726951997-10-08 15:34:42 +0000125After you are satisfied that 1.5a4 works as expected you can trash
Jack Jansen83cab721997-08-26 13:25:06 +0000126anything in the system folder that has "python" in the name and not
Jack Jansen0b726951997-10-08 15:34:42 +0000127"1.5a4".
Jack Jansen83cab721997-08-26 13:25:06 +0000128
129The installer
130-------------
131
132The installer for this product was created using Installer VISE Lite
133from MindVision Software. For more information on Installer VISE Lite,
Jack Jansen83cab721997-08-26 13:25:06 +0000134contact:
135MindVision Software
1367201 North 7th Street
137Lincoln, NE 68521-8913
138Voice: 402-477-3269
139Fax: 402-477-1395
140Internet: mindvision@mindvision.com
141http://www.mindvision.com
142
Jack Jansen0b726951997-10-08 15:34:42 +0000143Just van Rossum <just@knoware.nl> created the installer in just a couple
144of days (hours?).
Jack Jansen83cab721997-08-26 13:25:06 +0000145
146Feedback
147--------
148
149Send bug reports, suggestions, contributions and fanmail to
Jack Jansen0b726951997-10-08 15:34:42 +0000150<jack@cwi.nl>. Be warned however that I'm on holiday for most of october
151and november, so I may not always respond immedeately.
Jack Jansen83cab721997-08-26 13:25:06 +0000152
153A better way to discuss MacPython is to join the
154<pythonmac-sig@python.org> mailing list, which is explicitly meant for
155this purpose.
156
157Alternatively, you can try sending to comp.lang.python or
158python-list@cwi.nl, but since I read the newsgroup, not the mailinglist,
159I may miss it there (but other people may know quite a bit more than me
160anyway:-).
161
162Jack Jansen
163Centrum voor Wiskunde en Informatica
164Kruislaan 413
1651098 SJ Amsterdam
166the Netherlands
167
168<jack@cwi.nl>, http://www.cwi.nl/~jack