Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 1 | How to install Python 2.1a2 on your Macintosh |
| 2 | --------------------------------------------- |
| 3 | |
| 4 | Note that this is really an alpha: it is only lightly tested and contains a lot |
| 5 | of new code. Moreover, this release is Carbon only, so it will run on MacOS 8.6 |
| 6 | or later and MacOS X. The next alpha will again run in "classic MacOS" (8.0 or |
| 7 | later). |
| 8 | |
| 9 | I'm hoping for a fairly quick alpha cycle, with about 3 distributions in quick |
| 10 | succession, so please give feedback (to pythonmac-sig@python.org) as soon as |
| 11 | possible. You should definitely include the full version number of you MacOS |
| 12 | and the full version string of your MacPython. |
| 13 | |
| 14 | Whether PIL, Tk and Numeric work in this release is a complete guess. |
| 15 | |
| 16 | You should definitely read the Relnotes file too. |
| 17 | |
| 18 | ------ |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 19 | |
| 20 | If this is your first encounter with Python: you definitely need the |
| 21 | common user documentation (common to all platforms). You can find this |
Jack Jansen | 538bd13 | 2000-10-19 21:58:27 +0000 | [diff] [blame] | 22 | (in various forms) on www.pythonlabs.com, www.python.org and |
| 23 | ftp.python.org. Through there, or via |
| 24 | http://www.cwi.nl/~jack/macpython.html you can also find the most recent |
| 25 | MacPython distribution. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 26 | |
| 27 | Mac-specific documentation is included in this distribution in folder |
| 28 | Mac:Demo. The documentation is sparse, but it will have to serve for |
| 29 | now. The documentation is in HTML format, start with index.html. |
| 30 | |
Jack Jansen | d0ddb66 | 1998-04-27 15:14:36 +0000 | [diff] [blame] | 31 | Caveats |
| 32 | ------- |
Jack Jansen | de51909 | 2000-10-12 21:21:43 +0000 | [diff] [blame] | 33 | This is a final candidate version, so use with caution, and please report |
| 34 | problems as soon as possible, to pythonmac-sig@python.org. |
Jack Jansen | ffd61a6 | 2000-04-09 18:37:50 +0000 | [diff] [blame] | 35 | |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 36 | Aside from the general new Python 2.1 features compared to 2.0 the main |
| 37 | feature of this release is Carbon support. |
Jack Jansen | ffd61a6 | 2000-04-09 18:37:50 +0000 | [diff] [blame] | 38 | |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 39 | This installer installs MacPython for Carbon only. If you have a machine |
| 40 | running 8.5 or earlier you should wait for the next alfa and sitck with 2.0. |
| 41 | If you want |
| 42 | 68k support you will have to stay with 1.5.2. |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 43 | |
Jack Jansen | 965226b | 2000-09-14 20:58:24 +0000 | [diff] [blame] | 44 | This version of Python expects a recent version of Appearance, so it may |
| 45 | be that users with pre MacOS 8.5 systems have trouble running it. If |
| 46 | that is the case try getting CarbonLib from Apple, I am told this |
| 47 | includes Appearance and NavServices. You may also have to disable the |
| 48 | "Use navservices" preference for best results. |
| 49 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 50 | What to install |
| 51 | --------------- |
| 52 | |
Jack Jansen | 8a6cdcc | 2000-09-10 12:02:28 +0000 | [diff] [blame] | 53 | This installer is PPC only: too many new MacOS features are not |
| 54 | available on 68K, and doing workarounds, even just #ifdeffing in the |
| 55 | code, is too much work for me right now. If someone wants to revive |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 56 | 68K-MacPython: please do so. |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 57 | |
| 58 | The optional parts in this distribution are |
| 59 | - TK+PIL: Tkinter and support modules, plus Imaging, the Python image manipulation |
| 60 | package (allows you to read, write and display images and do lots of operations on them). |
| 61 | - img: another imaging package. Has more file format support and is faster |
| 62 | than imaging, but has only limited operations on images. There is a bridge |
| 63 | between the packages. |
| 64 | - Numeric: the LLNL Numeric Python extension. All sorts of nifty operations |
Jack Jansen | 8a6cdcc | 2000-09-10 12:02:28 +0000 | [diff] [blame] | 65 | on matrices and such. This is the most recent version from the sourceforge archive. |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 66 | - Developers kit: all header files and some tools and sample projects to get you started on |
| 67 | writing Python extensions if you have CodeWarrior. |
| 68 | All these except the DevKit are installed with Easy Install. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 69 | |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 70 | After the installer finishes it automatically launches the |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 71 | ConfigurePython applet, to finish configuration of your Python. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 72 | |
Jack Jansen | 2e42bdd | 2000-11-14 20:37:37 +0000 | [diff] [blame] | 73 | Moving your Python installation after installing is generally not a good idea. |
| 74 | If you have to do this anyway you should remove your preference file, run |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 75 | ConfigurePython and remove all .pyc files. (there's a script zappyc.py that does |
| 76 | the latter). |
Jack Jansen | 2e42bdd | 2000-11-14 20:37:37 +0000 | [diff] [blame] | 77 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 78 | If you don't have enough memory: the sizes choosen are somewhat |
Jack Jansen | 9080e9b | 2001-01-23 21:03:52 +0000 | [diff] [blame] | 79 | arbitrary, and they are as high as they are so that test.autotest runs with fewer |
| 80 | problems. An average Python program can make do with much less memory. |
| 81 | Try lowering the application sizes in the finder "get info" |
| 82 | window, and seeing whether the resulting python is still usable. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 83 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 84 | After installing |
| 85 | ---------------- |
| 86 | |
Jack Jansen | 8a6cdcc | 2000-09-10 12:02:28 +0000 | [diff] [blame] | 87 | It is probably a good idea to run the automatic tests. Start |
Jack Jansen | de51909 | 2000-10-12 21:21:43 +0000 | [diff] [blame] | 88 | Python and "import test.autotest". |
| 89 | |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 90 | Three tests will fail on MacOS9, all with MemoryErrors: test_gzip, test_sha, |
| 91 | test_longexp and test_zlib (on MacOSX nothing should fail). |
| 92 | If you increase the PythonInterpreter memory |
Jack Jansen | 2e42bdd | 2000-11-14 20:37:37 +0000 | [diff] [blame] | 93 | partition size they will pass. It will, however, print some messages |
| 94 | about optional features not supported. You should not worry about these, |
| 95 | they are modules that are supported by Python on other platforms. Also, |
| 96 | if you didn't run compileall before autotesting you may run out of |
| 97 | memory the first time you run the tests. test_socket may also fail if |
| 98 | you have no internet connection. Please also read the Relnotes file for |
| 99 | other minor problems with this distribution. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 100 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 101 | Using Python is most easily done from the IDE, which has a builtin editor, |
| 102 | debugger and other goodies. The alternative is to use PythonInterpreter, |
| 103 | which is the lowlevel interpreter with a console-window only (similar to Unix |
| 104 | Python). |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 105 | |
Jack Jansen | 8a6cdcc | 2000-09-10 12:02:28 +0000 | [diff] [blame] | 106 | If your program uses Tkinter you MUST run it under PythonInterpreter, Tkinter |
| 107 | and IDE are incompatible and your program will fail in strange ways. |
| 108 | |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 109 | Uninstalling |
| 110 | ------------ |
| 111 | |
| 112 | Two items are installed in the system folder: the interpreter shared |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 113 | libraries PythonCore and PythonCoreCarbon lives in the Extensions folder and the |
| 114 | "Python 2.1a2 Preferences" file in the Python subfolder in the |
Jack Jansen | 8a6cdcc | 2000-09-10 12:02:28 +0000 | [diff] [blame] | 115 | Preferences folder. All the rest of Python lives in the folder you |
| 116 | installed in. |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 117 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 118 | Things to see |
| 119 | ------------- |
| 120 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 121 | Start off at Mac:Demo:index.html. Read at least the first few sections. |
| 122 | |
Jack Jansen | 8a6cdcc | 2000-09-10 12:02:28 +0000 | [diff] [blame] | 123 | There are also some interesting files in the "Relnotes" folder that may |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 124 | contain useful information. There is also a first stab at documentation |
| 125 | (plus examples) in the Mac:Demo folder. The toplevel Demo folder has |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 126 | machine-independent demos. |
| 127 | The Mac:Lib:test folder also has some programs that show simple |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 128 | capabilities of various modules. |
| 129 | |
Jack Jansen | 8a6cdcc | 2000-09-10 12:02:28 +0000 | [diff] [blame] | 130 | The ":Mac:scripts" folder has some sample scripts. Some are useful, some are |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 131 | just interesting to look at to see how various things work. The MkDistr, |
| 132 | mkapplet and fullbuild scripts (plus the ones mentioned above) may help |
| 133 | you to understand how to use AppleEvents and various other toolboxes |
| 134 | from python. |
| 135 | |
Jack Jansen | 8a6cdcc | 2000-09-10 12:02:28 +0000 | [diff] [blame] | 136 | Other mac-specific goodies can be found in :Mac:Tools, of which the IDE sources |
| 137 | and a CGI framework deserve special mention. |
| 138 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 139 | The 'img' group of modules, which handles I/O of many different image |
Jack Jansen | d0ddb66 | 1998-04-27 15:14:36 +0000 | [diff] [blame] | 140 | formats is included, but without documentation. You can find docs at |
| 141 | ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there). |
| 142 | |
| 143 | Finally there is a Mac:Contrib folder which contains some contributed |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 144 | software. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 145 | |
| 146 | Upgrading from older Python releases |
| 147 | ------------------------------------ |
| 148 | |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 149 | Python releases are independent of each other, with |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 150 | separate Preferences files, shared library names, etc. The good news is |
| 151 | that this means you can keep your older version around if you are unsure |
| 152 | whether to upgrade. The bad news is that your old preference settings |
| 153 | are lost and you have to set them again. |
| 154 | |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 155 | After you are satisfied that 2.1 works as expected you can trash |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 156 | anything in the system folder that has "python" in the name and not |
Jack Jansen | 2f9a9e3 | 2001-02-17 22:03:42 +0000 | [diff] [blame^] | 157 | "2.1". |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 158 | |
| 159 | The installer |
| 160 | ------------- |
| 161 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 162 | The installer for this product was created using Installer VISE |
| 163 | from MindVision Software. For more information on Installer VISE, |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 164 | contact: |
| 165 | MindVision Software |
| 166 | 7201 North 7th Street |
| 167 | Lincoln, NE 68521-8913 |
| 168 | Voice: 402-477-3269 |
| 169 | Fax: 402-477-1395 |
| 170 | Internet: mindvision@mindvision.com |
| 171 | http://www.mindvision.com |
| 172 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 173 | Just van Rossum <just@letterror.nl> created the initial version of the |
| 174 | installer (with Installer Vise Lite), and Jack worked from there. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 175 | |
Jack Jansen | 01ae9eb | 2000-04-22 22:57:25 +0000 | [diff] [blame] | 176 | Thanks! |
| 177 | ------- |
| 178 | |
Jack Jansen | 965226b | 2000-09-14 20:58:24 +0000 | [diff] [blame] | 179 | Thanks go to the whole Python community with Guido in the lead, of |
| 180 | course. Mac-specific thanks go to the pythonmac-sig, Just van Rossum, |
| 181 | Corran Webster, Tony Ingraldi, Erik van Blokland, Bill Bedford, Chris |
| 182 | Stern, Gordon Worley, Oliver Steele, M. Papillon, Steven Majewski, David |
Jack Jansen | 538bd13 | 2000-10-19 21:58:27 +0000 | [diff] [blame] | 183 | Goodger, Chris Barker, Luc Lefebvre, Tattoo Mabonzo K., Russell Finn, |
| 184 | Tom Bridgman and all the other people who provided feedback, code or both! |
Jack Jansen | 01ae9eb | 2000-04-22 22:57:25 +0000 | [diff] [blame] | 185 | |
Jack Jansen | de51909 | 2000-10-12 21:21:43 +0000 | [diff] [blame] | 186 | MacPython includes waste, a TextEdit replacement which is (c) 1998 Marco Piovanelli. |
| 187 | |
Jack Jansen | 9080e9b | 2001-01-23 21:03:52 +0000 | [diff] [blame] | 188 | A special mention is deserved by Matthias Neeracher, who has written the brilliant |
| 189 | unix-compatible GUSI I/O library, without which MacPython would not have sockets |
| 190 | or select, and to Alexandre Parenteau, who has ported this library to Carbon. |
| 191 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 192 | Feedback |
| 193 | -------- |
| 194 | |
| 195 | Send bug reports, suggestions, contributions and fanmail to |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 196 | <jack@cwi.nl>. However, a better way to discuss MacPython is to join the |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 197 | <pythonmac-sig@python.org> mailing list, which is explicitly meant for |
| 198 | this purpose. |
| 199 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 200 | Jack Jansen |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 201 | Oratrix Development BV |
| 202 | Valeriusplein 30 |
| 203 | Amsterdam |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 204 | the Netherlands |
| 205 | |
| 206 | <jack@cwi.nl>, http://www.cwi.nl/~jack |