blob: 103bb8feb4fe0fb2802ddeda8c1970d96abaa65c [file] [log] [blame]
Jack Jansend0ddb661998-04-27 15:14:36 +00001How to install Python 1.5.1 on your Macintosh
Jack Jansen0b726951997-10-08 15:34:42 +00002---------------------------------------------
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
Jack Jansend0ddb661998-04-27 15:14:36 +000014Caveats
15-------
16There are still problems with cfm68k Python. 68K Mac users should
17probably try to use the cfm68k distribution first, and revert to the
18classic 68k distribution in case the bugs make their Python
19unworkable. The main problem is that packages ("dotted import") and
20NumPy printing don't work.
Jack Jansenecbc1cc1998-01-06 12:13:16 +000021
Jack Jansen83cab721997-08-26 13:25:06 +000022What to install
23---------------
24
25There are three flavors of Python: PowerPC, cfm68k and Classic 68k (the
26FAT flavor is just a combination of the first two, which is handy if you
27want to install Python on a fileserver or so). 68K-mac owners should
28definitely use the cfm68k version if possible, since it enables the use
29of applets and dynamically loaded modules and usually has a smaller
30memory footprint. It does however need the CFM68K Runtime Enabler which
31is available from Apple (available for free from
32<http://support.info.apple.com/ftp/swhome.html>, included since MacOS
337.6.1). If your machine is pre-68020 you cannot use cfm68k and you can
34install the classic 68k Python.
35
Jack Jansen0b726951997-10-08 15:34:42 +000036After the installer finishes it automatically launches the
37ConfigurePython applet, to finish configuration of your Python
38installation (except for classic 68K installations, where no extra
39configuration is needed).
40
Jack Jansen83cab721997-08-26 13:25:06 +000041If you have a pre-system 7 macintosh: sorry, this release will not work
42on your system. Too many sys7 features are used to make a sys6 python
43easy to create.
44
45If you don't have enough memory: the sizes choosen are somewhat
46arbitrary. Try lowering the application sizes in the finder "get info"
47window, and seeing whether the resulting python is still usable. Some
48modules (Tkinter comes to mind) need a lot of memory, so it may also be
49necessary to increase the application size.
50
51A final note to CFM68K (and possibly PPC) users: the Code Fragment
52Manager can (incorrectly) produce "library not found" and other strange
53error messages when it really means that there is not enough room in the
54system heap. Decreasing (yes, *de*creasing) the size of the interpreter
55and/or enabling virtual memory may solve these problems.
56
57After installing
58----------------
59
Jack Jansen01881721998-02-20 15:46:35 +000060The first step thing you could try is to run "compileall.py" to create
61all .pyc files, but this isn't very important, as pyc files are
62created on-the-fly as well. You may also want to skip this step if you
63are low on diskspace.
64
Jack Jansend0ddb661998-04-27 15:14:36 +000065Next, it is probably a good idea to run the automatic tests. Start
66Python and "import test.autotest". This should not print any
67errors. It will, however, print some messages about optional features
68not supported. Also, if you didn't run compileall before autotesting
69you may run out of memory the first time you run the
70tests. test_socket may also fail if you have no internet
71connection. Please also read the Relnotes file for other minor
72problems with this distribution.
Jack Jansen83cab721997-08-26 13:25:06 +000073
Jack Jansen83cab721997-08-26 13:25:06 +000074PPC and CFM68K users have a couple of applets in the main folder they
75may want to try, (68K users can use the corresponding scripts from the
76"scripts" folder):
77
78- EditPythonPrefs allows you to edit the preferences file, to change the
79python home folder or modify the initial sys.path setting. The default
80settings are somewhat arbitrary, you can remove tkinter if you don't use
81it and possibly add Extensions:img:Lib. - mkapplet creates a python
82applet, a tiny application written in python. Drop a python source on it
83and out comes the application. More information can be found in the
84"Mac:Demo" folder.
85
Jack Jansen0b726951997-10-08 15:34:42 +000086If you have a slow machine you may want to disable automatic site.py import
87since site.py does not do too much on the mac (unless you make it do
88something), and it can take a few seconds.
89
Jack Jansen83cab721997-08-26 13:25:06 +000090PPC and CFM68K users will see one more file in the python folder:
91PythonApplet. This is the template for building applets, leave it alone.
92The applet is "fat", containing both PPC and CFM68K code. Hence, applets
93built with it can be transported to machines with the other
94architecture.
95
Jack Jansen0b726951997-10-08 15:34:42 +000096Uninstalling
97------------
98
99Two items are installed in the system folder: the interpreter shared
Jack Jansend0ddb661998-04-27 15:14:36 +0000100library "PythonCore 1.5.1" lives in the Extensions folder and the
101"Python 1.5.1 Preferences" file in the Preferences folder. All the rest
Jack Jansen0b726951997-10-08 15:34:42 +0000102of Python lives in the folder you installed in.
103
Jack Jansen83cab721997-08-26 13:25:06 +0000104Things to see
105-------------
106
107There are some readme files in the "Read me files" folder that may
108contain useful information. There is also a first stab at documentation
109(plus examples) in the Mac:Demo folder. The toplevel Demo folder has
110machine-independent demos. See the file Readme-mac for mac-specific
111notes. The Mac:Lib:test folder also has some programs that show simple
112capabilities of various modules.
113
114The "scripts" folder has some sample scripts. Some are useful, some are
115just interesting to look at to see how various things work. The MkDistr,
116mkapplet and fullbuild scripts (plus the ones mentioned above) may help
117you to understand how to use AppleEvents and various other toolboxes
118from python.
119
120The 'img' group of modules, which handles I/O of many different image
Jack Jansend0ddb661998-04-27 15:14:36 +0000121formats is included, but without documentation. You can find docs at
122ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
123
124Finally there is a Mac:Contrib folder which contains some contributed
Jack Jansen845264f1998-05-06 13:24:38 +0000125software, including a Real Programming Environment and some AppleScript
126related modules.
Jack Jansen83cab721997-08-26 13:25:06 +0000127
128Upgrading from older Python releases
129------------------------------------
130
131Since release 1.4 Python releases are independent of each other, with
132separate Preferences files, shared library names, etc. The good news is
133that this means you can keep your older version around if you are unsure
134whether to upgrade. The bad news is that your old preference settings
135are lost and you have to set them again.
136
Jack Jansen845264f1998-05-06 13:24:38 +0000137After you are satisfied that 1.5.1 works as expected you can trash
Jack Jansen83cab721997-08-26 13:25:06 +0000138anything in the system folder that has "python" in the name and not
Jack Jansen845264f1998-05-06 13:24:38 +0000139"1.5.1".
Jack Jansen83cab721997-08-26 13:25:06 +0000140
141The installer
142-------------
143
144The installer for this product was created using Installer VISE Lite
145from MindVision Software. For more information on Installer VISE Lite,
Jack Jansen83cab721997-08-26 13:25:06 +0000146contact:
147MindVision Software
1487201 North 7th Street
149Lincoln, NE 68521-8913
150Voice: 402-477-3269
151Fax: 402-477-1395
152Internet: mindvision@mindvision.com
153http://www.mindvision.com
154
Jack Jansen845264f1998-05-06 13:24:38 +0000155Just van Rossum <just@letterror.nl> created the installer.
Jack Jansen83cab721997-08-26 13:25:06 +0000156
157Feedback
158--------
159
160Send bug reports, suggestions, contributions and fanmail to
Jack Jansenecbc1cc1998-01-06 12:13:16 +0000161<jack@cwi.nl>. However, a better way to discuss MacPython is to join the
Jack Jansen83cab721997-08-26 13:25:06 +0000162<pythonmac-sig@python.org> mailing list, which is explicitly meant for
163this purpose.
164
165Alternatively, you can try sending to comp.lang.python or
166python-list@cwi.nl, but since I read the newsgroup, not the mailinglist,
167I may miss it there (but other people may know quite a bit more than me
168anyway:-).
169
170Jack Jansen
171Centrum voor Wiskunde en Informatica
172Kruislaan 413
1731098 SJ Amsterdam
174the Netherlands
175
176<jack@cwi.nl>, http://www.cwi.nl/~jack