blob: 918be602ec725dced5bf4d03453f4a3591baaeef [file] [log] [blame]
Jack Jansen12a37b72000-05-06 23:01:07 +00001How to install Python 1.6a2 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 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.
Jack Jansen12a37b72000-05-06 23:01:07 +000022This has had some preliminary testing, but please report any success or failure
23on the mailing list.
Jack Jansenffd61a62000-04-09 18:37:50 +000024
25This installer installs MacPython for PowerPC only, whether a 68K distribution
Jack Jansen12a37b72000-05-06 23:01:07 +000026of Python 1.6 will happen is not certain at the moment.
Jack Jansenffd61a62000-04-09 18:37:50 +000027
Jack Jansen12a37b72000-05-06 23:01:07 +000028Changes since 1.6a1
29-------------------
30
31- All core-Python changes, plus a few from after 1.6a2, approximately as the
32 Python CVS tree was at May 5.
33- The threading performance bug has been fixed.
34- Tkinter is included again (yeah!), but only lightly tested. Please report
35 findings to the mailing list.
36- macfsn.py is auto-imported on startup (unless disabled with a new option).
37 This retrofits macfs.StandardGetFile() and friends to use Navigation Services
38 in stead of the old Standard File dialogs.
39- I think all installer problems have been fixed. Please report if not so.
Jack Jansenecbc1cc1998-01-06 12:13:16 +000040
Jack Jansen83cab721997-08-26 13:25:06 +000041What to install
42---------------
43
Jack Jansen12a37b72000-05-06 23:01:07 +000044This installer is PPC only: too many new MacOS features are not available on 68K,
45and doing workarounds, even just #ifdeffing in the code, is too much work for
46me right now. If someone wants to revive 68K-MacPython: please do so. The project
47files still contain the 68K targets (they're simply skipped by the build process)
48so all that is needed is CodeWarrior, a source distribution and commitment.
49
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
57 on matrices and such.
58- 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 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 Jansen01881721998-02-20 15:46:35 +000074The first step thing you could try is to run "compileall.py" to create
75all .pyc files, but this isn't very important, as pyc files are
76created on-the-fly as well. You may also want to skip this step if you
77are low on diskspace.
78
Jack Jansend0ddb661998-04-27 15:14:36 +000079Next, it is probably a good idea to run the automatic tests. Start
Jack Jansen12a37b72000-05-06 23:01:07 +000080Python and "import test.autotest". This should not print only one error, about some
81AM/PM format not supported in strftime.
82It will, however, print some messages about optional features
Jack Jansend0ddb661998-04-27 15:14:36 +000083not supported. Also, if you didn't run compileall before autotesting
84you may run out of memory the first time you run the
85tests. test_socket may also fail if you have no internet
86connection. Please also read the Relnotes file for other minor
87problems with this distribution.
Jack Jansen83cab721997-08-26 13:25:06 +000088
Jack Jansen12a37b72000-05-06 23:01:07 +000089Using Python is most easily done from the IDE, which has a builtin editor,
90debugger and other goodies. The alternative is to use PythonInterpreter,
91which is the lowlevel interpreter with a console-window only (similar to Unix
92Python).
Jack Jansen83cab721997-08-26 13:25:06 +000093
Jack Jansen0b726951997-10-08 15:34:42 +000094Uninstalling
95------------
96
97Two items are installed in the system folder: the interpreter shared
Jack Jansen12a37b72000-05-06 23:01:07 +000098library "PythonCore 1.6a2" lives in the Extensions folder and the
99"Python 1.6a2 Preferences" file in the Preferences folder. All the rest
Jack Jansen0b726951997-10-08 15:34:42 +0000100of Python lives in the folder you installed in.
101
Jack Jansen83cab721997-08-26 13:25:06 +0000102Things to see
103-------------
104
Jack Jansen12a37b72000-05-06 23:01:07 +0000105Start off at Mac:Demo:index.html. Read at least the first few sections.
106
107There are also some readme files in the "Read me files" folder that may
Jack Jansen83cab721997-08-26 13:25:06 +0000108contain useful information. There is also a first stab at documentation
109(plus examples) in the Mac:Demo folder. The toplevel Demo folder has
Jack Jansen12a37b72000-05-06 23:01:07 +0000110machine-independent demos.
111The Mac:Lib:test folder also has some programs that show simple
Jack Jansen83cab721997-08-26 13:25:06 +0000112capabilities of various modules.
113
114The "scripts" folder has some sample scripts. Some are useful, some are
115just interesting to look at to see how various things work. The MkDistr,
116mkapplet and fullbuild scripts (plus the ones mentioned above) may help
117you to understand how to use AppleEvents and various other toolboxes
118from python.
119
120The 'img' group of modules, which handles I/O of many different image
Jack Jansend0ddb661998-04-27 15:14:36 +0000121formats is included, but without documentation. You can find docs at
122ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
123
124Finally there is a Mac:Contrib folder which contains some contributed
Jack Jansen12a37b72000-05-06 23:01:07 +0000125software.
Jack Jansen83cab721997-08-26 13:25:06 +0000126
127Upgrading from older Python releases
128------------------------------------
129
130Since release 1.4 Python releases are independent of each other, with
131separate Preferences files, shared library names, etc. The good news is
132that this means you can keep your older version around if you are unsure
133whether to upgrade. The bad news is that your old preference settings
134are lost and you have to set them again.
135
Jack Jansen12a37b72000-05-06 23:01:07 +0000136After you are satisfied that 1.6a2 works as expected you can trash
Jack Jansen83cab721997-08-26 13:25:06 +0000137anything in the system folder that has "python" in the name and not
Jack Jansen12a37b72000-05-06 23:01:07 +0000138"1.6a2".
Jack Jansen83cab721997-08-26 13:25:06 +0000139
140The installer
141-------------
142
Jack Jansen12a37b72000-05-06 23:01:07 +0000143The installer for this product was created using Installer VISE
144from MindVision Software. For more information on Installer VISE,
Jack Jansen83cab721997-08-26 13:25:06 +0000145contact:
146MindVision Software
1477201 North 7th Street
148Lincoln, NE 68521-8913
149Voice: 402-477-3269
150Fax: 402-477-1395
151Internet: mindvision@mindvision.com
152http://www.mindvision.com
153
Jack Jansen12a37b72000-05-06 23:01:07 +0000154Just van Rossum <just@letterror.nl> created the initial version of the
155installer (with Installer Vise Lite), and Jack worked from there.
Jack Jansen83cab721997-08-26 13:25:06 +0000156
Jack Jansen01ae9eb2000-04-22 22:57:25 +0000157Thanks!
158-------
159
160Thanks go to the whole Python community with Guido in the lead, of course.
161Mac-specific thanks go to the pythonmac-sig, Just van Rossum, Corran Webster,
162Erik van Blokland, Bill Bedford, Chris Stern, Gordon Worley and all the other people
163who provided feedback, code or both!
164
Jack Jansen83cab721997-08-26 13:25:06 +0000165Feedback
166--------
167
168Send bug reports, suggestions, contributions and fanmail to
Jack Jansenecbc1cc1998-01-06 12:13:16 +0000169<jack@cwi.nl>. However, a better way to discuss MacPython is to join the
Jack Jansen83cab721997-08-26 13:25:06 +0000170<pythonmac-sig@python.org> mailing list, which is explicitly meant for
171this purpose.
172
173Alternatively, you can try sending to comp.lang.python or
174python-list@cwi.nl, but since I read the newsgroup, not the mailinglist,
175I may miss it there (but other people may know quite a bit more than me
176anyway:-).
177
178Jack Jansen
Jack Jansen12a37b72000-05-06 23:01:07 +0000179Oratrix Development BV
180Valeriusplein 30
181Amsterdam
Jack Jansen83cab721997-08-26 13:25:06 +0000182the Netherlands
183
184<jack@cwi.nl>, http://www.cwi.nl/~jack