blob: 69d04c25b7aef5c02fd0d285b691332b3684791f [file] [log] [blame]
Jack Jansen46e13022000-09-24 22:01:53 +00001How to install Python 2.0b1+ on your Macintosh
Jack Jansenffd61a62000-04-09 18:37:50 +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-------
Jack Jansen46e13022000-09-24 22:01:53 +000016This is a beta version, so use with caution. This b1+ beta has received
17only very little testing, use the older b1 if it proves problematic.
18
19If you have used an earlier version of 2.0b1 you _must_ remove your old
20preference file, the files are incompatible.
Jack Jansenffd61a62000-04-09 18:37:50 +000021
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000022Aside from the general new Python 2.0 features (compared to 1.5.2, there
23was no 1.6 for the macintosh) like unicode support the main new features
24of this MacPython release is support for multithreading. This has had
25some preliminary testing, but please report any success or failure on
26the mailing list.
Jack Jansenffd61a62000-04-09 18:37:50 +000027
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000028This installer installs MacPython for PowerPC only, if you really want
2968k support you will have to stay with 1.5.2. Or, if you are willing to
30invest the time and have access to CodeWarrior you are welcome to try
31and build a 68k distribution, most of the projects and sources are
32reasonably up to date (May 2000). Contact me for details.
Jack Jansenecbc1cc1998-01-06 12:13:16 +000033
Jack Jansen965226b2000-09-14 20:58:24 +000034This version of Python expects a recent version of Appearance, so it may
35be that users with pre MacOS 8.5 systems have trouble running it. If
36that is the case try getting CarbonLib from Apple, I am told this
37includes Appearance and NavServices. You may also have to disable the
38"Use navservices" preference for best results.
39
Jack Jansen83cab721997-08-26 13:25:06 +000040What to install
41---------------
42
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000043This installer is PPC only: too many new MacOS features are not
44available on 68K, and doing workarounds, even just #ifdeffing in the
45code, is too much work for me right now. If someone wants to revive
4668K-MacPython: please do so. The project files still contain the 68K
47targets (they're simply skipped by the build process) so all that is
48needed is CodeWarrior, a source distribution and commitment.
Jack Jansen12a37b72000-05-06 23:01:07 +000049
50The optional parts in this distribution are
51- TK+PIL: Tkinter and support modules, plus Imaging, the Python image manipulation
52 package (allows you to read, write and display images and do lots of operations on them).
53- img: another imaging package. Has more file format support and is faster
54 than imaging, but has only limited operations on images. There is a bridge
55 between the packages.
56- Numeric: the LLNL Numeric Python extension. All sorts of nifty operations
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000057 on matrices and such. This is the most recent version from the sourceforge archive.
Jack Jansen12a37b72000-05-06 23:01:07 +000058- Developers kit: all header files and some tools and sample projects to get you started on
59 writing Python extensions if you have CodeWarrior.
60All these except the DevKit are installed with Easy Install.
Jack Jansen83cab721997-08-26 13:25:06 +000061
Jack Jansen0b726951997-10-08 15:34:42 +000062After the installer finishes it automatically launches the
Jack Jansen12a37b72000-05-06 23:01:07 +000063ConfigurePython applet, to finish configuration of your Python.
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000064If you have previously installed another copy of 2.0b1 you should manually
65remove your preference file first (but no such action is needed for installing
66beside older MacPythons, and they will live together happily).
Jack Jansen83cab721997-08-26 13:25:06 +000067
68If you don't have enough memory: the sizes choosen are somewhat
69arbitrary. Try lowering the application sizes in the finder "get info"
70window, and seeing whether the resulting python is still usable. Some
71modules (Tkinter comes to mind) need a lot of memory, so it may also be
72necessary to increase the application size.
73
Jack Jansen83cab721997-08-26 13:25:06 +000074After installing
75----------------
76
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000077It is probably a good idea to run the automatic tests. Start
78Python and "import test.autotest". This should print only 2 or 3 errors, about some
79AM/PM format not supported in strftime, about a MemoryError in test_longexp and
80about a memory error in test_zlib.
Jack Jansen12a37b72000-05-06 23:01:07 +000081It will, however, print some messages about optional features
Jack Jansend0ddb661998-04-27 15:14:36 +000082not supported. Also, if you didn't run compileall before autotesting
83you may run out of memory the first time you run the
84tests. test_socket may also fail if you have no internet
85connection. Please also read the Relnotes file for other minor
86problems with this distribution.
Jack Jansen83cab721997-08-26 13:25:06 +000087
Jack Jansen12a37b72000-05-06 23:01:07 +000088Using Python is most easily done from the IDE, which has a builtin editor,
89debugger and other goodies. The alternative is to use PythonInterpreter,
90which is the lowlevel interpreter with a console-window only (similar to Unix
91Python).
Jack Jansen83cab721997-08-26 13:25:06 +000092
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000093If your program uses Tkinter you MUST run it under PythonInterpreter, Tkinter
94and IDE are incompatible and your program will fail in strange ways.
95
Jack Jansen0b726951997-10-08 15:34:42 +000096Uninstalling
97------------
98
99Two items are installed in the system folder: the interpreter shared
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000100library "PythonCore 2.0b1" lives in the Extensions folder and the
101"Python 2.0b1 Preferences" file in the Python subfolder in the
102Preferences folder. All the rest of Python lives in the folder you
103installed in.
Jack Jansen0b726951997-10-08 15:34:42 +0000104
Jack Jansen83cab721997-08-26 13:25:06 +0000105Things to see
106-------------
107
Jack Jansen12a37b72000-05-06 23:01:07 +0000108Start off at Mac:Demo:index.html. Read at least the first few sections.
109
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000110There are also some interesting files in the "Relnotes" folder that may
Jack Jansen83cab721997-08-26 13:25:06 +0000111contain useful information. There is also a first stab at documentation
112(plus examples) in the Mac:Demo folder. The toplevel Demo folder has
Jack Jansen12a37b72000-05-06 23:01:07 +0000113machine-independent demos.
114The Mac:Lib:test folder also has some programs that show simple
Jack Jansen83cab721997-08-26 13:25:06 +0000115capabilities of various modules.
116
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000117The ":Mac:scripts" folder has some sample scripts. Some are useful, some are
Jack Jansen83cab721997-08-26 13:25:06 +0000118just interesting to look at to see how various things work. The MkDistr,
119mkapplet and fullbuild scripts (plus the ones mentioned above) may help
120you to understand how to use AppleEvents and various other toolboxes
121from python.
122
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000123Other mac-specific goodies can be found in :Mac:Tools, of which the IDE sources
124and a CGI framework deserve special mention.
125
Jack Jansen83cab721997-08-26 13:25:06 +0000126The 'img' group of modules, which handles I/O of many different image
Jack Jansend0ddb661998-04-27 15:14:36 +0000127formats is included, but without documentation. You can find docs at
128ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
129
130Finally there is a Mac:Contrib folder which contains some contributed
Jack Jansen12a37b72000-05-06 23:01:07 +0000131software.
Jack Jansen83cab721997-08-26 13:25:06 +0000132
133Upgrading from older Python releases
134------------------------------------
135
136Since release 1.4 Python releases are independent of each other, with
137separate Preferences files, shared library names, etc. The good news is
138that this means you can keep your older version around if you are unsure
139whether to upgrade. The bad news is that your old preference settings
140are lost and you have to set them again.
141
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000142After you are satisfied that 2.0b1 works as expected you can trash
Jack Jansen83cab721997-08-26 13:25:06 +0000143anything in the system folder that has "python" in the name and not
Jack Jansen965226b2000-09-14 20:58:24 +0000144"2.0b1".
Jack Jansen83cab721997-08-26 13:25:06 +0000145
146The installer
147-------------
148
Jack Jansen12a37b72000-05-06 23:01:07 +0000149The installer for this product was created using Installer VISE
150from MindVision Software. For more information on Installer VISE,
Jack Jansen83cab721997-08-26 13:25:06 +0000151contact:
152MindVision Software
1537201 North 7th Street
154Lincoln, NE 68521-8913
155Voice: 402-477-3269
156Fax: 402-477-1395
157Internet: mindvision@mindvision.com
158http://www.mindvision.com
159
Jack Jansen12a37b72000-05-06 23:01:07 +0000160Just van Rossum <just@letterror.nl> created the initial version of the
161installer (with Installer Vise Lite), and Jack worked from there.
Jack Jansen83cab721997-08-26 13:25:06 +0000162
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000163Thanks!
164-------
165
Jack Jansen965226b2000-09-14 20:58:24 +0000166Thanks go to the whole Python community with Guido in the lead, of
167course. Mac-specific thanks go to the pythonmac-sig, Just van Rossum,
168Corran Webster, Tony Ingraldi, Erik van Blokland, Bill Bedford, Chris
169Stern, Gordon Worley, Oliver Steele, M. Papillon, Steven Majewski, David
170Goodger, Chris Barker, Luc Lefebvre and all the other people who
171provided feedback, code or both!
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000172
Jack Jansen83cab721997-08-26 13:25:06 +0000173Feedback
174--------
175
176Send bug reports, suggestions, contributions and fanmail to
Jack Jansenecbc1cc1998-01-06 12:13:16 +0000177<jack@cwi.nl>. However, a better way to discuss MacPython is to join the
Jack Jansen83cab721997-08-26 13:25:06 +0000178<pythonmac-sig@python.org> mailing list, which is explicitly meant for
179this purpose.
180
181Alternatively, you can try sending to comp.lang.python or
182python-list@cwi.nl, but since I read the newsgroup, not the mailinglist,
183I may miss it there (but other people may know quite a bit more than me
184anyway:-).
185
186Jack Jansen
Jack Jansen12a37b72000-05-06 23:01:07 +0000187Oratrix Development BV
188Valeriusplein 30
189Amsterdam
Jack Jansen83cab721997-08-26 13:25:06 +0000190the Netherlands
191
192<jack@cwi.nl>, http://www.cwi.nl/~jack