blob: 4c594cdb827c6ed303e5833d341581d6dc2c4868 [file] [log] [blame]
Jack Jansenffd61a62000-04-09 18:37:50 +00001How to install Python 1.6a1 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
Jack Jansend0ddb661998-04-27 15:14:36 +000014Caveats
15-------
Jack Jansenffd61a62000-04-09 18:37:50 +000016This is an alfa version, and for this once it really means that: there
17are quite a few features that have only lightly been tested, and bugs are
18to be expected.
19
20Aside from the general Python 1.6 features like unicode support the
21main new features of this MacPython release is support for multithreading.
22This has not been tested very well.
23
24This installer installs MacPython for PowerPC only, whether a 68K distribution
25of Python 1.6 will happen is not certain at the moment. There is no Tkinter
26in this installer.
27
28All references to 68k, cfm68k and Tkinter in this document and in the
29installer should be ignored: it really isn't there.
Jack Jansenecbc1cc1998-01-06 12:13:16 +000030
Jack Jansen83cab721997-08-26 13:25:06 +000031What to install
32---------------
33
Jack Jansenb5600e71999-01-13 16:58:53 +000034There are three flavors of Python: PowerPC, cfm68k and Classic 68k
35(the FAT flavor is just a combination of the first two, which is handy
36if you want to install Python on a fileserver or so). 68K-mac owners
37should definitely use the cfm68k version if possible, since it enables
38the use of applets and dynamically loaded modules and usually has a
39smaller memory footprint. If you have an older system than MacOS 8 it
40does however need the CFM68K Runtime Enabler which is available from
41Apple (available for free from
Jack Jansen83cab721997-08-26 13:25:06 +000042<http://support.info.apple.com/ftp/swhome.html>, included since MacOS
Jack Jansenb5600e71999-01-13 16:58:53 +0000437.6.1 and builtin to the system since MacOS 8). If your machine is
44pre-68020 you cannot use cfm68k and you can install the classic 68k
45Python.
Jack Jansen83cab721997-08-26 13:25:06 +000046
Jack Jansen0b726951997-10-08 15:34:42 +000047After the installer finishes it automatically launches the
48ConfigurePython applet, to finish configuration of your Python
49installation (except for classic 68K installations, where no extra
50configuration is needed).
51
Jack Jansen83cab721997-08-26 13:25:06 +000052If you have a pre-system 7 macintosh: sorry, this release will not work
53on your system. Too many sys7 features are used to make a sys6 python
54easy to create.
55
56If you don't have enough memory: the sizes choosen are somewhat
57arbitrary. Try lowering the application sizes in the finder "get info"
58window, and seeing whether the resulting python is still usable. Some
59modules (Tkinter comes to mind) need a lot of memory, so it may also be
60necessary to increase the application size.
61
62A final note to CFM68K (and possibly PPC) users: the Code Fragment
63Manager can (incorrectly) produce "library not found" and other strange
64error messages when it really means that there is not enough room in the
65system heap. Decreasing (yes, *de*creasing) the size of the interpreter
66and/or enabling virtual memory may solve these problems.
67
68After installing
69----------------
70
Jack Jansen01881721998-02-20 15:46:35 +000071The first step thing you could try is to run "compileall.py" to create
72all .pyc files, but this isn't very important, as pyc files are
73created on-the-fly as well. You may also want to skip this step if you
74are low on diskspace.
75
Jack Jansend0ddb661998-04-27 15:14:36 +000076Next, it is probably a good idea to run the automatic tests. Start
77Python and "import test.autotest". This should not print any
78errors. It will, however, print some messages about optional features
79not supported. Also, if you didn't run compileall before autotesting
80you may run out of memory the first time you run the
81tests. test_socket may also fail if you have no internet
82connection. Please also read the Relnotes file for other minor
83problems with this distribution.
Jack Jansen83cab721997-08-26 13:25:06 +000084
Jack Jansen83cab721997-08-26 13:25:06 +000085PPC and CFM68K users have a couple of applets in the main folder they
86may want to try, (68K users can use the corresponding scripts from the
87"scripts" folder):
88
89- EditPythonPrefs allows you to edit the preferences file, to change the
90python home folder or modify the initial sys.path setting. The default
91settings are somewhat arbitrary, you can remove tkinter if you don't use
92it and possibly add Extensions:img:Lib. - mkapplet creates a python
93applet, a tiny application written in python. Drop a python source on it
94and out comes the application. More information can be found in the
95"Mac:Demo" folder.
96
Jack Jansen0b726951997-10-08 15:34:42 +000097If you have a slow machine you may want to disable automatic site.py import
98since site.py does not do too much on the mac (unless you make it do
99something), and it can take a few seconds.
100
Jack Jansen83cab721997-08-26 13:25:06 +0000101PPC and CFM68K users will see one more file in the python folder:
102PythonApplet. This is the template for building applets, leave it alone.
103The applet is "fat", containing both PPC and CFM68K code. Hence, applets
104built with it can be transported to machines with the other
105architecture.
106
Jack Jansen0b726951997-10-08 15:34:42 +0000107Uninstalling
108------------
109
110Two items are installed in the system folder: the interpreter shared
Jack Jansen539d4251999-01-22 13:26:45 +0000111library "PythonCore 1.5.2b1" lives in the Extensions folder and the
112"Python 1.5.2b1 Preferences" file in the Preferences folder. All the rest
Jack Jansen0b726951997-10-08 15:34:42 +0000113of Python lives in the folder you installed in.
114
Jack Jansen83cab721997-08-26 13:25:06 +0000115Things to see
116-------------
117
118There are some readme files in the "Read me files" folder that may
119contain useful information. There is also a first stab at documentation
120(plus examples) in the Mac:Demo folder. The toplevel Demo folder has
121machine-independent demos. See the file Readme-mac for mac-specific
122notes. The Mac:Lib:test folder also has some programs that show simple
123capabilities of various modules.
124
125The "scripts" folder has some sample scripts. Some are useful, some are
126just interesting to look at to see how various things work. The MkDistr,
127mkapplet and fullbuild scripts (plus the ones mentioned above) may help
128you to understand how to use AppleEvents and various other toolboxes
129from python.
130
131The 'img' group of modules, which handles I/O of many different image
Jack Jansend0ddb661998-04-27 15:14:36 +0000132formats is included, but without documentation. You can find docs at
133ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
134
135Finally there is a Mac:Contrib folder which contains some contributed
Jack Jansen845264f1998-05-06 13:24:38 +0000136software, including a Real Programming Environment and some AppleScript
137related modules.
Jack Jansen83cab721997-08-26 13:25:06 +0000138
139Upgrading from older Python releases
140------------------------------------
141
142Since release 1.4 Python releases are independent of each other, with
143separate Preferences files, shared library names, etc. The good news is
144that this means you can keep your older version around if you are unsure
145whether to upgrade. The bad news is that your old preference settings
146are lost and you have to set them again.
147
Jack Jansen539d4251999-01-22 13:26:45 +0000148After you are satisfied that 1.5.2b1 works as expected you can trash
Jack Jansen83cab721997-08-26 13:25:06 +0000149anything in the system folder that has "python" in the name and not
Jack Jansen539d4251999-01-22 13:26:45 +0000150"1.5.2b1".
Jack Jansen83cab721997-08-26 13:25:06 +0000151
152The installer
153-------------
154
155The installer for this product was created using Installer VISE Lite
156from MindVision Software. For more information on Installer VISE Lite,
Jack Jansen83cab721997-08-26 13:25:06 +0000157contact:
158MindVision Software
1597201 North 7th Street
160Lincoln, NE 68521-8913
161Voice: 402-477-3269
162Fax: 402-477-1395
163Internet: mindvision@mindvision.com
164http://www.mindvision.com
165
Jack Jansen845264f1998-05-06 13:24:38 +0000166Just van Rossum <just@letterror.nl> created the installer.
Jack Jansen83cab721997-08-26 13:25:06 +0000167
168Feedback
169--------
170
171Send bug reports, suggestions, contributions and fanmail to
Jack Jansenecbc1cc1998-01-06 12:13:16 +0000172<jack@cwi.nl>. However, a better way to discuss MacPython is to join the
Jack Jansen83cab721997-08-26 13:25:06 +0000173<pythonmac-sig@python.org> mailing list, which is explicitly meant for
174this purpose.
175
176Alternatively, you can try sending to comp.lang.python or
177python-list@cwi.nl, but since I read the newsgroup, not the mailinglist,
178I may miss it there (but other people may know quite a bit more than me
179anyway:-).
180
181Jack Jansen
182Centrum voor Wiskunde en Informatica
183Kruislaan 413
1841098 SJ Amsterdam
185the Netherlands
186
187<jack@cwi.nl>, http://www.cwi.nl/~jack