blob: cde2b08b13913f057f41d7e2f0bc01b1eee264b4 [file] [log] [blame]
Jack Jansen538bd132000-10-19 21:58:27 +00001How to install Python 2.0 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
Jack Jansen538bd132000-10-19 21:58:27 +00006(in various forms) on www.pythonlabs.com, www.python.org and
7ftp.python.org. Through there, or via
8http://www.cwi.nl/~jack/macpython.html you can also find the most recent
9MacPython distribution.
Jack Jansen83cab721997-08-26 13:25:06 +000010
11Mac-specific documentation is included in this distribution in folder
12Mac:Demo. The documentation is sparse, but it will have to serve for
13now. The documentation is in HTML format, start with index.html.
14
Jack Jansend0ddb661998-04-27 15:14:36 +000015Caveats
16-------
Jack Jansende519092000-10-12 21:21:43 +000017This is a final candidate version, so use with caution, and please report
18problems as soon as possible, to pythonmac-sig@python.org.
Jack Jansenffd61a62000-04-09 18:37:50 +000019
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000020Aside from the general new Python 2.0 features (compared to 1.5.2, there
21was no 1.6 for the macintosh) like unicode support the main new features
22of this MacPython release is support for multithreading. This has had
23some preliminary testing, but please report any success or failure on
24the mailing list.
Jack Jansenffd61a62000-04-09 18:37:50 +000025
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000026This installer installs MacPython for PowerPC only, if you really want
2768k support you will have to stay with 1.5.2. Or, if you are willing to
28invest the time and have access to CodeWarrior you are welcome to try
29and build a 68k distribution, most of the projects and sources are
30reasonably up to date (May 2000). Contact me for details.
Jack Jansenecbc1cc1998-01-06 12:13:16 +000031
Jack Jansen965226b2000-09-14 20:58:24 +000032This version of Python expects a recent version of Appearance, so it may
33be that users with pre MacOS 8.5 systems have trouble running it. If
34that is the case try getting CarbonLib from Apple, I am told this
35includes Appearance and NavServices. You may also have to disable the
36"Use navservices" preference for best results.
37
Jack Jansen83cab721997-08-26 13:25:06 +000038What to install
39---------------
40
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000041This installer is PPC only: too many new MacOS features are not
42available on 68K, and doing workarounds, even just #ifdeffing in the
43code, is too much work for me right now. If someone wants to revive
4468K-MacPython: please do so. The project files still contain the 68K
45targets (they're simply skipped by the build process) so all that is
46needed is CodeWarrior, a source distribution and commitment.
Jack Jansen12a37b72000-05-06 23:01:07 +000047
48The optional parts in this distribution are
49- TK+PIL: Tkinter and support modules, plus Imaging, the Python image manipulation
50 package (allows you to read, write and display images and do lots of operations on them).
51- img: another imaging package. Has more file format support and is faster
52 than imaging, but has only limited operations on images. There is a bridge
53 between the packages.
54- Numeric: the LLNL Numeric Python extension. All sorts of nifty operations
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000055 on matrices and such. This is the most recent version from the sourceforge archive.
Jack Jansen12a37b72000-05-06 23:01:07 +000056- Developers kit: all header files and some tools and sample projects to get you started on
57 writing Python extensions if you have CodeWarrior.
58All these except the DevKit are installed with Easy Install.
Jack Jansen83cab721997-08-26 13:25:06 +000059
Jack Jansen0b726951997-10-08 15:34:42 +000060After the installer finishes it automatically launches the
Jack Jansen12a37b72000-05-06 23:01:07 +000061ConfigurePython applet, to finish configuration of your Python.
Jack Jansen538bd132000-10-19 21:58:27 +000062If you have previously installed another copy of 2.0 you should manually
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000063remove your preference file first (but no such action is needed for installing
64beside older MacPythons, and they will live together happily).
Jack Jansen83cab721997-08-26 13:25:06 +000065
Jack Jansen2e42bdd2000-11-14 20:37:37 +000066Moving your Python installation after installing is generally not a good idea.
67If you have to do this anyway you should remove your preference file, run
68ConfigurePython and remove all .pyc files.
69
Jack Jansen83cab721997-08-26 13:25:06 +000070If you don't have enough memory: the sizes choosen are somewhat
71arbitrary. Try lowering the application sizes in the finder "get info"
72window, and seeing whether the resulting python is still usable. Some
73modules (Tkinter comes to mind) need a lot of memory, so it may also be
74necessary to increase the application size.
75
Jack Jansen83cab721997-08-26 13:25:06 +000076After installing
77----------------
78
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000079It is probably a good idea to run the automatic tests. Start
Jack Jansende519092000-10-12 21:21:43 +000080Python and "import test.autotest".
81
Jack Jansen2e42bdd2000-11-14 20:37:37 +000082Three tests will fail on the mac, all with MemoryErrors: test_sha,
83test_longexp and test_zlib. If you increase the PythonInterpreter memory
84partition size they will pass. It will, however, print some messages
85about optional features not supported. You should not worry about these,
86they are modules that are supported by Python on other platforms. Also,
87if you didn't run compileall before autotesting you may run out of
88memory the first time you run the tests. test_socket may also fail if
89you have no internet connection. Please also read the Relnotes file for
90other minor problems with this distribution.
Jack Jansen83cab721997-08-26 13:25:06 +000091
Jack Jansen12a37b72000-05-06 23:01:07 +000092Using Python is most easily done from the IDE, which has a builtin editor,
93debugger and other goodies. The alternative is to use PythonInterpreter,
94which is the lowlevel interpreter with a console-window only (similar to Unix
95Python).
Jack Jansen83cab721997-08-26 13:25:06 +000096
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000097If your program uses Tkinter you MUST run it under PythonInterpreter, Tkinter
98and IDE are incompatible and your program will fail in strange ways.
99
Jack Jansen0b726951997-10-08 15:34:42 +0000100Uninstalling
101------------
102
103Two items are installed in the system folder: the interpreter shared
Jack Jansen538bd132000-10-19 21:58:27 +0000104library "PythonCore 2.0" lives in the Extensions folder and the
105"Python 2.0 Preferences" file in the Python subfolder in the
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000106Preferences folder. All the rest of Python lives in the folder you
107installed in.
Jack Jansen0b726951997-10-08 15:34:42 +0000108
Jack Jansen83cab721997-08-26 13:25:06 +0000109Things to see
110-------------
111
Jack Jansen12a37b72000-05-06 23:01:07 +0000112Start off at Mac:Demo:index.html. Read at least the first few sections.
113
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000114There are also some interesting files in the "Relnotes" folder that may
Jack Jansen83cab721997-08-26 13:25:06 +0000115contain useful information. There is also a first stab at documentation
116(plus examples) in the Mac:Demo folder. The toplevel Demo folder has
Jack Jansen12a37b72000-05-06 23:01:07 +0000117machine-independent demos.
118The Mac:Lib:test folder also has some programs that show simple
Jack Jansen83cab721997-08-26 13:25:06 +0000119capabilities of various modules.
120
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000121The ":Mac:scripts" folder has some sample scripts. Some are useful, some are
Jack Jansen83cab721997-08-26 13:25:06 +0000122just interesting to look at to see how various things work. The MkDistr,
123mkapplet and fullbuild scripts (plus the ones mentioned above) may help
124you to understand how to use AppleEvents and various other toolboxes
125from python.
126
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000127Other mac-specific goodies can be found in :Mac:Tools, of which the IDE sources
128and a CGI framework deserve special mention.
129
Jack Jansen83cab721997-08-26 13:25:06 +0000130The 'img' group of modules, which handles I/O of many different image
Jack Jansend0ddb661998-04-27 15:14:36 +0000131formats is included, but without documentation. You can find docs at
132ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
133
134Finally there is a Mac:Contrib folder which contains some contributed
Jack Jansen12a37b72000-05-06 23:01:07 +0000135software.
Jack Jansen83cab721997-08-26 13:25:06 +0000136
137Upgrading from older Python releases
138------------------------------------
139
140Since release 1.4 Python releases are independent of each other, with
141separate Preferences files, shared library names, etc. The good news is
142that this means you can keep your older version around if you are unsure
143whether to upgrade. The bad news is that your old preference settings
144are lost and you have to set them again.
145
Jack Jansen538bd132000-10-19 21:58:27 +0000146After you are satisfied that 2.0 works as expected you can trash
Jack Jansen83cab721997-08-26 13:25:06 +0000147anything in the system folder that has "python" in the name and not
Jack Jansen538bd132000-10-19 21:58:27 +0000148"2.0".
Jack Jansen83cab721997-08-26 13:25:06 +0000149
150The installer
151-------------
152
Jack Jansen12a37b72000-05-06 23:01:07 +0000153The installer for this product was created using Installer VISE
154from MindVision Software. For more information on Installer VISE,
Jack Jansen83cab721997-08-26 13:25:06 +0000155contact:
156MindVision Software
1577201 North 7th Street
158Lincoln, NE 68521-8913
159Voice: 402-477-3269
160Fax: 402-477-1395
161Internet: mindvision@mindvision.com
162http://www.mindvision.com
163
Jack Jansen12a37b72000-05-06 23:01:07 +0000164Just van Rossum <just@letterror.nl> created the initial version of the
165installer (with Installer Vise Lite), and Jack worked from there.
Jack Jansen83cab721997-08-26 13:25:06 +0000166
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000167Thanks!
168-------
169
Jack Jansen965226b2000-09-14 20:58:24 +0000170Thanks go to the whole Python community with Guido in the lead, of
171course. Mac-specific thanks go to the pythonmac-sig, Just van Rossum,
172Corran Webster, Tony Ingraldi, Erik van Blokland, Bill Bedford, Chris
173Stern, Gordon Worley, Oliver Steele, M. Papillon, Steven Majewski, David
Jack Jansen538bd132000-10-19 21:58:27 +0000174Goodger, Chris Barker, Luc Lefebvre, Tattoo Mabonzo K., Russell Finn,
175Tom Bridgman and all the other people who provided feedback, code or both!
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000176
Jack Jansende519092000-10-12 21:21:43 +0000177MacPython includes waste, a TextEdit replacement which is (c) 1998 Marco Piovanelli.
178
Jack Jansen83cab721997-08-26 13:25:06 +0000179Feedback
180--------
181
182Send bug reports, suggestions, contributions and fanmail to
Jack Jansenecbc1cc1998-01-06 12:13:16 +0000183<jack@cwi.nl>. However, a better way to discuss MacPython is to join the
Jack Jansen83cab721997-08-26 13:25:06 +0000184<pythonmac-sig@python.org> mailing list, which is explicitly meant for
185this purpose.
186
187Alternatively, you can try sending to comp.lang.python or
188python-list@cwi.nl, but since I read the newsgroup, not the mailinglist,
189I may miss it there (but other people may know quite a bit more than me
190anyway:-).
191
192Jack Jansen
Jack Jansen12a37b72000-05-06 23:01:07 +0000193Oratrix Development BV
194Valeriusplein 30
195Amsterdam
Jack Jansen83cab721997-08-26 13:25:06 +0000196the Netherlands
197
198<jack@cwi.nl>, http://www.cwi.nl/~jack