blob: abcec7b1d3456610c611f22346fb0f35b4970aaa [file] [log] [blame]
Jack Jansende519092000-10-12 21:21:43 +00001How to install Python 2.0c1 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 Jansende519092000-10-12 21:21:43 +000016This is a final candidate version, so use with caution, and please report
17problems as soon as possible, to pythonmac-sig@python.org.
Jack Jansenffd61a62000-04-09 18:37:50 +000018
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000019Aside from the general new Python 2.0 features (compared to 1.5.2, there
20was no 1.6 for the macintosh) like unicode support the main new features
21of this MacPython release is support for multithreading. This has had
22some preliminary testing, but please report any success or failure on
23the mailing list.
Jack Jansenffd61a62000-04-09 18:37:50 +000024
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000025This installer installs MacPython for PowerPC only, if you really want
2668k support you will have to stay with 1.5.2. Or, if you are willing to
27invest the time and have access to CodeWarrior you are welcome to try
28and build a 68k distribution, most of the projects and sources are
29reasonably up to date (May 2000). Contact me for details.
Jack Jansenecbc1cc1998-01-06 12:13:16 +000030
Jack Jansen965226b2000-09-14 20:58:24 +000031This version of Python expects a recent version of Appearance, so it may
32be that users with pre MacOS 8.5 systems have trouble running it. If
33that is the case try getting CarbonLib from Apple, I am told this
34includes Appearance and NavServices. You may also have to disable the
35"Use navservices" preference for best results.
36
Jack Jansen83cab721997-08-26 13:25:06 +000037What to install
38---------------
39
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000040This installer is PPC only: too many new MacOS features are not
41available on 68K, and doing workarounds, even just #ifdeffing in the
42code, is too much work for me right now. If someone wants to revive
4368K-MacPython: please do so. The project files still contain the 68K
44targets (they're simply skipped by the build process) so all that is
45needed is CodeWarrior, a source distribution and commitment.
Jack Jansen12a37b72000-05-06 23:01:07 +000046
47The optional parts in this distribution are
48- TK+PIL: Tkinter and support modules, plus Imaging, the Python image manipulation
49 package (allows you to read, write and display images and do lots of operations on them).
50- img: another imaging package. Has more file format support and is faster
51 than imaging, but has only limited operations on images. There is a bridge
52 between the packages.
53- Numeric: the LLNL Numeric Python extension. All sorts of nifty operations
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000054 on matrices and such. This is the most recent version from the sourceforge archive.
Jack Jansen12a37b72000-05-06 23:01:07 +000055- Developers kit: all header files and some tools and sample projects to get you started on
56 writing Python extensions if you have CodeWarrior.
57All these except the DevKit are installed with Easy Install.
Jack Jansen83cab721997-08-26 13:25:06 +000058
Jack Jansen0b726951997-10-08 15:34:42 +000059After the installer finishes it automatically launches the
Jack Jansen12a37b72000-05-06 23:01:07 +000060ConfigurePython applet, to finish configuration of your Python.
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000061If you have previously installed another copy of 2.0b1 you should manually
62remove your preference file first (but no such action is needed for installing
63beside older MacPythons, and they will live together happily).
Jack Jansen83cab721997-08-26 13:25:06 +000064
65If you don't have enough memory: the sizes choosen are somewhat
66arbitrary. Try lowering the application sizes in the finder "get info"
67window, and seeing whether the resulting python is still usable. Some
68modules (Tkinter comes to mind) need a lot of memory, so it may also be
69necessary to increase the application size.
70
Jack Jansen83cab721997-08-26 13:25:06 +000071After installing
72----------------
73
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000074It is probably a good idea to run the automatic tests. Start
Jack Jansende519092000-10-12 21:21:43 +000075Python and "import test.autotest".
76
77Three tests will fail on the mac, all with MemoryErrors: test_sha, test_longexp
78and test_zlib. If you increase the PythonInterpreter memory partition size they
79will pass.
Jack Jansen12a37b72000-05-06 23:01:07 +000080It will, however, print some messages about optional features
Jack Jansend0ddb661998-04-27 15:14:36 +000081not supported. Also, if you didn't run compileall before autotesting
82you may run out of memory the first time you run the
83tests. test_socket may also fail if you have no internet
84connection. Please also read the Relnotes file for other minor
85problems with this distribution.
Jack Jansen83cab721997-08-26 13:25:06 +000086
Jack Jansen12a37b72000-05-06 23:01:07 +000087Using Python is most easily done from the IDE, which has a builtin editor,
88debugger and other goodies. The alternative is to use PythonInterpreter,
89which is the lowlevel interpreter with a console-window only (similar to Unix
90Python).
Jack Jansen83cab721997-08-26 13:25:06 +000091
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000092If your program uses Tkinter you MUST run it under PythonInterpreter, Tkinter
93and IDE are incompatible and your program will fail in strange ways.
94
Jack Jansen0b726951997-10-08 15:34:42 +000095Uninstalling
96------------
97
98Two items are installed in the system folder: the interpreter shared
Jack Jansende519092000-10-12 21:21:43 +000099library "PythonCore 2.0c1" lives in the Extensions folder and the
100"Python 2.0c1 Preferences" file in the Python subfolder in the
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000101Preferences folder. All the rest of Python lives in the folder you
102installed in.
Jack Jansen0b726951997-10-08 15:34:42 +0000103
Jack Jansen83cab721997-08-26 13:25:06 +0000104Things to see
105-------------
106
Jack Jansen12a37b72000-05-06 23:01:07 +0000107Start off at Mac:Demo:index.html. Read at least the first few sections.
108
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000109There are also some interesting files in the "Relnotes" folder that may
Jack Jansen83cab721997-08-26 13:25:06 +0000110contain useful information. There is also a first stab at documentation
111(plus examples) in the Mac:Demo folder. The toplevel Demo folder has
Jack Jansen12a37b72000-05-06 23:01:07 +0000112machine-independent demos.
113The Mac:Lib:test folder also has some programs that show simple
Jack Jansen83cab721997-08-26 13:25:06 +0000114capabilities of various modules.
115
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000116The ":Mac:scripts" folder has some sample scripts. Some are useful, some are
Jack Jansen83cab721997-08-26 13:25:06 +0000117just interesting to look at to see how various things work. The MkDistr,
118mkapplet and fullbuild scripts (plus the ones mentioned above) may help
119you to understand how to use AppleEvents and various other toolboxes
120from python.
121
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000122Other mac-specific goodies can be found in :Mac:Tools, of which the IDE sources
123and a CGI framework deserve special mention.
124
Jack Jansen83cab721997-08-26 13:25:06 +0000125The 'img' group of modules, which handles I/O of many different image
Jack Jansend0ddb661998-04-27 15:14:36 +0000126formats is included, but without documentation. You can find docs at
127ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
128
129Finally there is a Mac:Contrib folder which contains some contributed
Jack Jansen12a37b72000-05-06 23:01:07 +0000130software.
Jack Jansen83cab721997-08-26 13:25:06 +0000131
132Upgrading from older Python releases
133------------------------------------
134
135Since release 1.4 Python releases are independent of each other, with
136separate Preferences files, shared library names, etc. The good news is
137that this means you can keep your older version around if you are unsure
138whether to upgrade. The bad news is that your old preference settings
139are lost and you have to set them again.
140
Jack Jansende519092000-10-12 21:21:43 +0000141After you are satisfied that 2.0c1 works as expected you can trash
Jack Jansen83cab721997-08-26 13:25:06 +0000142anything in the system folder that has "python" in the name and not
Jack Jansende519092000-10-12 21:21:43 +0000143"2.0c1".
Jack Jansen83cab721997-08-26 13:25:06 +0000144
145The installer
146-------------
147
Jack Jansen12a37b72000-05-06 23:01:07 +0000148The installer for this product was created using Installer VISE
149from MindVision Software. For more information on Installer VISE,
Jack Jansen83cab721997-08-26 13:25:06 +0000150contact:
151MindVision Software
1527201 North 7th Street
153Lincoln, NE 68521-8913
154Voice: 402-477-3269
155Fax: 402-477-1395
156Internet: mindvision@mindvision.com
157http://www.mindvision.com
158
Jack Jansen12a37b72000-05-06 23:01:07 +0000159Just van Rossum <just@letterror.nl> created the initial version of the
160installer (with Installer Vise Lite), and Jack worked from there.
Jack Jansen83cab721997-08-26 13:25:06 +0000161
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000162Thanks!
163-------
164
Jack Jansen965226b2000-09-14 20:58:24 +0000165Thanks go to the whole Python community with Guido in the lead, of
166course. Mac-specific thanks go to the pythonmac-sig, Just van Rossum,
167Corran Webster, Tony Ingraldi, Erik van Blokland, Bill Bedford, Chris
168Stern, Gordon Worley, Oliver Steele, M. Papillon, Steven Majewski, David
169Goodger, Chris Barker, Luc Lefebvre and all the other people who
170provided feedback, code or both!
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000171
Jack Jansende519092000-10-12 21:21:43 +0000172MacPython includes waste, a TextEdit replacement which is (c) 1998 Marco Piovanelli.
173
Jack Jansen83cab721997-08-26 13:25:06 +0000174Feedback
175--------
176
177Send bug reports, suggestions, contributions and fanmail to
Jack Jansenecbc1cc1998-01-06 12:13:16 +0000178<jack@cwi.nl>. However, a better way to discuss MacPython is to join the
Jack Jansen83cab721997-08-26 13:25:06 +0000179<pythonmac-sig@python.org> mailing list, which is explicitly meant for
180this purpose.
181
182Alternatively, you can try sending to comp.lang.python or
183python-list@cwi.nl, but since I read the newsgroup, not the mailinglist,
184I may miss it there (but other people may know quite a bit more than me
185anyway:-).
186
187Jack Jansen
Jack Jansen12a37b72000-05-06 23:01:07 +0000188Oratrix Development BV
189Valeriusplein 30
190Amsterdam
Jack Jansen83cab721997-08-26 13:25:06 +0000191the Netherlands
192
193<jack@cwi.nl>, http://www.cwi.nl/~jack