blob: ec8660e269e7608c1d05d043e812442eb21e33f5 [file] [log] [blame]
Jack Jansen24033e32001-02-27 23:24:07 +00001How to install Python 2.1a3 on your Macintosh
Jack Jansen2f9a9e32001-02-17 22:03:42 +00002---------------------------------------------
3
4Note that this is really an alpha: it is only lightly tested and contains a lot
Jack Jansen24033e32001-02-27 23:24:07 +00005of new code. Moreover, this release is Carbon only, so it will run on MacOS 8.1
Jack Jansen2f9a9e32001-02-17 22:03:42 +00006or later and MacOS X. The next alpha will again run in "classic MacOS" (8.0 or
Jack Jansen24033e32001-02-27 23:24:07 +00007later). For MacOS 8.1 through 8.6 you will have to install CarbonLib (version 1.0.4
8or later) yourself from the Apple website.
Jack Jansen2f9a9e32001-02-17 22:03:42 +00009
10I'm hoping for a fairly quick alpha cycle, with about 3 distributions in quick
11succession, so please give feedback (to pythonmac-sig@python.org) as soon as
12possible. You should definitely include the full version number of you MacOS
13and the full version string of your MacPython.
14
15Whether PIL, Tk and Numeric work in this release is a complete guess.
16
17You should definitely read the Relnotes file too.
18
19------
Jack Jansen83cab721997-08-26 13:25:06 +000020
21If this is your first encounter with Python: you definitely need the
22common user documentation (common to all platforms). You can find this
Jack Jansen538bd132000-10-19 21:58:27 +000023(in various forms) on www.pythonlabs.com, www.python.org and
24ftp.python.org. Through there, or via
25http://www.cwi.nl/~jack/macpython.html you can also find the most recent
26MacPython distribution.
Jack Jansen83cab721997-08-26 13:25:06 +000027
28Mac-specific documentation is included in this distribution in folder
29Mac:Demo. The documentation is sparse, but it will have to serve for
30now. The documentation is in HTML format, start with index.html.
31
Jack Jansend0ddb661998-04-27 15:14:36 +000032Caveats
33-------
Jack Jansende519092000-10-12 21:21:43 +000034This is a final candidate version, so use with caution, and please report
35problems as soon as possible, to pythonmac-sig@python.org.
Jack Jansenffd61a62000-04-09 18:37:50 +000036
Jack Jansen2f9a9e32001-02-17 22:03:42 +000037Aside from the general new Python 2.1 features compared to 2.0 the main
38feature of this release is Carbon support.
Jack Jansenffd61a62000-04-09 18:37:50 +000039
Jack Jansen2f9a9e32001-02-17 22:03:42 +000040This installer installs MacPython for Carbon only. If you have a machine
41running 8.5 or earlier you should wait for the next alfa and sitck with 2.0.
42If you want
4368k support you will have to stay with 1.5.2.
Jack Jansenecbc1cc1998-01-06 12:13:16 +000044
Jack Jansen965226b2000-09-14 20:58:24 +000045This version of Python expects a recent version of Appearance, so it may
46be that users with pre MacOS 8.5 systems have trouble running it. If
47that is the case try getting CarbonLib from Apple, I am told this
48includes Appearance and NavServices. You may also have to disable the
49"Use navservices" preference for best results.
50
Jack Jansen83cab721997-08-26 13:25:06 +000051What to install
52---------------
53
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000054This installer is PPC only: too many new MacOS features are not
55available on 68K, and doing workarounds, even just #ifdeffing in the
56code, is too much work for me right now. If someone wants to revive
Jack Jansen2f9a9e32001-02-17 22:03:42 +00005768K-MacPython: please do so.
Jack Jansen12a37b72000-05-06 23:01:07 +000058
59The optional parts in this distribution are
60- TK+PIL: Tkinter and support modules, plus Imaging, the Python image manipulation
61 package (allows you to read, write and display images and do lots of operations on them).
62- img: another imaging package. Has more file format support and is faster
63 than imaging, but has only limited operations on images. There is a bridge
64 between the packages.
65- Numeric: the LLNL Numeric Python extension. All sorts of nifty operations
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000066 on matrices and such. This is the most recent version from the sourceforge archive.
Jack Jansen12a37b72000-05-06 23:01:07 +000067- Developers kit: all header files and some tools and sample projects to get you started on
68 writing Python extensions if you have CodeWarrior.
69All these except the DevKit are installed with Easy Install.
Jack Jansen83cab721997-08-26 13:25:06 +000070
Jack Jansen0b726951997-10-08 15:34:42 +000071After the installer finishes it automatically launches the
Jack Jansen12a37b72000-05-06 23:01:07 +000072ConfigurePython applet, to finish configuration of your Python.
Jack Jansen83cab721997-08-26 13:25:06 +000073
Jack Jansen2e42bdd2000-11-14 20:37:37 +000074Moving your Python installation after installing is generally not a good idea.
75If you have to do this anyway you should remove your preference file, run
Jack Jansen2f9a9e32001-02-17 22:03:42 +000076ConfigurePython and remove all .pyc files. (there's a script zappyc.py that does
77the latter).
Jack Jansen2e42bdd2000-11-14 20:37:37 +000078
Jack Jansen83cab721997-08-26 13:25:06 +000079If you don't have enough memory: the sizes choosen are somewhat
Jack Jansen9080e9b2001-01-23 21:03:52 +000080arbitrary, and they are as high as they are so that test.autotest runs with fewer
81problems. An average Python program can make do with much less memory.
82Try lowering the application sizes in the finder "get info"
83window, and seeing whether the resulting python is still usable.
Jack Jansen83cab721997-08-26 13:25:06 +000084
Jack Jansen83cab721997-08-26 13:25:06 +000085After installing
86----------------
87
Jack Jansen8a6cdcc2000-09-10 12:02:28 +000088It is probably a good idea to run the automatic tests. Start
Jack Jansende519092000-10-12 21:21:43 +000089Python and "import test.autotest".
90
Jack Jansen2f9a9e32001-02-17 22:03:42 +000091Three tests will fail on MacOS9, all with MemoryErrors: test_gzip, test_sha,
92test_longexp and test_zlib (on MacOSX nothing should fail).
93If you increase the PythonInterpreter memory
Jack Jansen2e42bdd2000-11-14 20:37:37 +000094partition size they will pass. It will, however, print some messages
95about optional features not supported. You should not worry about these,
96they are modules that are supported by Python on other platforms. Also,
97if you didn't run compileall before autotesting you may run out of
98memory the first time you run the tests. test_socket may also fail if
99you have no internet connection. Please also read the Relnotes file for
100other minor problems with this distribution.
Jack Jansen83cab721997-08-26 13:25:06 +0000101
Jack Jansen12a37b72000-05-06 23:01:07 +0000102Using Python is most easily done from the IDE, which has a builtin editor,
103debugger and other goodies. The alternative is to use PythonInterpreter,
104which is the lowlevel interpreter with a console-window only (similar to Unix
105Python).
Jack Jansen83cab721997-08-26 13:25:06 +0000106
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000107If your program uses Tkinter you MUST run it under PythonInterpreter, Tkinter
108and IDE are incompatible and your program will fail in strange ways.
109
Jack Jansen0b726951997-10-08 15:34:42 +0000110Uninstalling
111------------
112
113Two items are installed in the system folder: the interpreter shared
Jack Jansen2f9a9e32001-02-17 22:03:42 +0000114libraries PythonCore and PythonCoreCarbon lives in the Extensions folder and the
Jack Jansen24033e32001-02-27 23:24:07 +0000115"Python 2.1a3 Preferences" file in the Python subfolder in the
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000116Preferences folder. All the rest of Python lives in the folder you
117installed in.
Jack Jansen0b726951997-10-08 15:34:42 +0000118
Jack Jansen83cab721997-08-26 13:25:06 +0000119Things to see
120-------------
121
Jack Jansen12a37b72000-05-06 23:01:07 +0000122Start off at Mac:Demo:index.html. Read at least the first few sections.
123
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000124There are also some interesting files in the "Relnotes" folder that may
Jack Jansen83cab721997-08-26 13:25:06 +0000125contain useful information. There is also a first stab at documentation
126(plus examples) in the Mac:Demo folder. The toplevel Demo folder has
Jack Jansen12a37b72000-05-06 23:01:07 +0000127machine-independent demos.
128The Mac:Lib:test folder also has some programs that show simple
Jack Jansen83cab721997-08-26 13:25:06 +0000129capabilities of various modules.
130
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000131The ":Mac:scripts" folder has some sample scripts. Some are useful, some are
Jack Jansen83cab721997-08-26 13:25:06 +0000132just interesting to look at to see how various things work. The MkDistr,
133mkapplet and fullbuild scripts (plus the ones mentioned above) may help
134you to understand how to use AppleEvents and various other toolboxes
135from python.
136
Jack Jansen8a6cdcc2000-09-10 12:02:28 +0000137Other mac-specific goodies can be found in :Mac:Tools, of which the IDE sources
138and a CGI framework deserve special mention.
139
Jack Jansen83cab721997-08-26 13:25:06 +0000140The 'img' group of modules, which handles I/O of many different image
Jack Jansend0ddb661998-04-27 15:14:36 +0000141formats is included, but without documentation. You can find docs at
142ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
143
144Finally there is a Mac:Contrib folder which contains some contributed
Jack Jansen12a37b72000-05-06 23:01:07 +0000145software.
Jack Jansen83cab721997-08-26 13:25:06 +0000146
147Upgrading from older Python releases
148------------------------------------
149
Jack Jansen2f9a9e32001-02-17 22:03:42 +0000150Python releases are independent of each other, with
Jack Jansen83cab721997-08-26 13:25:06 +0000151separate Preferences files, shared library names, etc. The good news is
152that this means you can keep your older version around if you are unsure
153whether to upgrade. The bad news is that your old preference settings
154are lost and you have to set them again.
155
Jack Jansen2f9a9e32001-02-17 22:03:42 +0000156After you are satisfied that 2.1 works as expected you can trash
Jack Jansen83cab721997-08-26 13:25:06 +0000157anything in the system folder that has "python" in the name and not
Jack Jansen2f9a9e32001-02-17 22:03:42 +0000158"2.1".
Jack Jansen83cab721997-08-26 13:25:06 +0000159
160The installer
161-------------
162
Jack Jansen12a37b72000-05-06 23:01:07 +0000163The installer for this product was created using Installer VISE
164from MindVision Software. For more information on Installer VISE,
Jack Jansen83cab721997-08-26 13:25:06 +0000165contact:
166MindVision Software
1677201 North 7th Street
168Lincoln, NE 68521-8913
169Voice: 402-477-3269
170Fax: 402-477-1395
171Internet: mindvision@mindvision.com
172http://www.mindvision.com
173
Jack Jansen12a37b72000-05-06 23:01:07 +0000174Just van Rossum <just@letterror.nl> created the initial version of the
175installer (with Installer Vise Lite), and Jack worked from there.
Jack Jansen83cab721997-08-26 13:25:06 +0000176
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000177Thanks!
178-------
179
Jack Jansen965226b2000-09-14 20:58:24 +0000180Thanks go to the whole Python community with Guido in the lead, of
181course. Mac-specific thanks go to the pythonmac-sig, Just van Rossum,
182Corran Webster, Tony Ingraldi, Erik van Blokland, Bill Bedford, Chris
183Stern, Gordon Worley, Oliver Steele, M. Papillon, Steven Majewski, David
Jack Jansen538bd132000-10-19 21:58:27 +0000184Goodger, Chris Barker, Luc Lefebvre, Tattoo Mabonzo K., Russell Finn,
185Tom Bridgman and all the other people who provided feedback, code or both!
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000186
Jack Jansende519092000-10-12 21:21:43 +0000187MacPython includes waste, a TextEdit replacement which is (c) 1998 Marco Piovanelli.
188
Jack Jansen9080e9b2001-01-23 21:03:52 +0000189A special mention is deserved by Matthias Neeracher, who has written the brilliant
190unix-compatible GUSI I/O library, without which MacPython would not have sockets
191or select, and to Alexandre Parenteau, who has ported this library to Carbon.
192
Jack Jansen83cab721997-08-26 13:25:06 +0000193Feedback
194--------
195
196Send bug reports, suggestions, contributions and fanmail to
Jack Jansenecbc1cc1998-01-06 12:13:16 +0000197<jack@cwi.nl>. However, a better way to discuss MacPython is to join the
Jack Jansen83cab721997-08-26 13:25:06 +0000198<pythonmac-sig@python.org> mailing list, which is explicitly meant for
199this purpose.
200
Jack Jansen83cab721997-08-26 13:25:06 +0000201Jack Jansen
Jack Jansen12a37b72000-05-06 23:01:07 +0000202Oratrix Development BV
203Valeriusplein 30
204Amsterdam
Jack Jansen83cab721997-08-26 13:25:06 +0000205the Netherlands
206
207<jack@cwi.nl>, http://www.cwi.nl/~jack