Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 1 | How to install Python 1.6a2 on your Macintosh |
Jack Jansen | ffd61a6 | 2000-04-09 18:37:50 +0000 | [diff] [blame] | 2 | --------------------------------------------- |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 3 | |
| 4 | If this is your first encounter with Python: you definitely need the |
| 5 | common user documentation (common to all platforms). You can find this |
| 6 | (in various forms) on www.python.org and ftp.python.org. Through |
| 7 | there, or via http://www.cwi.nl/~jack/macpython.html you can also find |
| 8 | the most recent MacPython distribution. |
| 9 | |
| 10 | Mac-specific documentation is included in this distribution in folder |
| 11 | Mac:Demo. The documentation is sparse, but it will have to serve for |
| 12 | now. The documentation is in HTML format, start with index.html. |
| 13 | |
Jack Jansen | d0ddb66 | 1998-04-27 15:14:36 +0000 | [diff] [blame] | 14 | Caveats |
| 15 | ------- |
Jack Jansen | ffd61a6 | 2000-04-09 18:37:50 +0000 | [diff] [blame] | 16 | This is an alfa version, and for this once it really means that: there |
| 17 | are quite a few features that have only lightly been tested, and bugs are |
| 18 | to be expected. |
| 19 | |
| 20 | Aside from the general Python 1.6 features like unicode support the |
| 21 | main new features of this MacPython release is support for multithreading. |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 22 | This has had some preliminary testing, but please report any success or failure |
| 23 | on the mailing list. |
Jack Jansen | ffd61a6 | 2000-04-09 18:37:50 +0000 | [diff] [blame] | 24 | |
| 25 | This installer installs MacPython for PowerPC only, whether a 68K distribution |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 26 | of Python 1.6 will happen is not certain at the moment. |
Jack Jansen | ffd61a6 | 2000-04-09 18:37:50 +0000 | [diff] [blame] | 27 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 28 | Changes 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 Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 40 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 41 | What to install |
| 42 | --------------- |
| 43 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 44 | This installer is PPC only: too many new MacOS features are not available on 68K, |
| 45 | and doing workarounds, even just #ifdeffing in the code, is too much work for |
| 46 | me right now. If someone wants to revive 68K-MacPython: please do so. The project |
| 47 | files still contain the 68K targets (they're simply skipped by the build process) |
| 48 | so all that is needed is CodeWarrior, a source distribution and commitment. |
| 49 | |
| 50 | The 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. |
| 60 | All these except the DevKit are installed with Easy Install. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 61 | |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 62 | After the installer finishes it automatically launches the |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 63 | ConfigurePython applet, to finish configuration of your Python. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 64 | |
| 65 | If you don't have enough memory: the sizes choosen are somewhat |
| 66 | arbitrary. Try lowering the application sizes in the finder "get info" |
| 67 | window, and seeing whether the resulting python is still usable. Some |
| 68 | modules (Tkinter comes to mind) need a lot of memory, so it may also be |
| 69 | necessary to increase the application size. |
| 70 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 71 | After installing |
| 72 | ---------------- |
| 73 | |
Jack Jansen | 0188172 | 1998-02-20 15:46:35 +0000 | [diff] [blame] | 74 | The first step thing you could try is to run "compileall.py" to create |
| 75 | all .pyc files, but this isn't very important, as pyc files are |
| 76 | created on-the-fly as well. You may also want to skip this step if you |
| 77 | are low on diskspace. |
| 78 | |
Jack Jansen | d0ddb66 | 1998-04-27 15:14:36 +0000 | [diff] [blame] | 79 | Next, it is probably a good idea to run the automatic tests. Start |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 80 | Python and "import test.autotest". This should not print only one error, about some |
| 81 | AM/PM format not supported in strftime. |
| 82 | It will, however, print some messages about optional features |
Jack Jansen | d0ddb66 | 1998-04-27 15:14:36 +0000 | [diff] [blame] | 83 | not supported. Also, if you didn't run compileall before autotesting |
| 84 | you may run out of memory the first time you run the |
| 85 | tests. test_socket may also fail if you have no internet |
| 86 | connection. Please also read the Relnotes file for other minor |
| 87 | problems with this distribution. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 88 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 89 | Using Python is most easily done from the IDE, which has a builtin editor, |
| 90 | debugger and other goodies. The alternative is to use PythonInterpreter, |
| 91 | which is the lowlevel interpreter with a console-window only (similar to Unix |
| 92 | Python). |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 93 | |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 94 | Uninstalling |
| 95 | ------------ |
| 96 | |
| 97 | Two items are installed in the system folder: the interpreter shared |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 98 | library "PythonCore 1.6a2" lives in the Extensions folder and the |
| 99 | "Python 1.6a2 Preferences" file in the Preferences folder. All the rest |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 100 | of Python lives in the folder you installed in. |
| 101 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 102 | Things to see |
| 103 | ------------- |
| 104 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 105 | Start off at Mac:Demo:index.html. Read at least the first few sections. |
| 106 | |
| 107 | There are also some readme files in the "Read me files" folder that may |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 108 | contain useful information. There is also a first stab at documentation |
| 109 | (plus examples) in the Mac:Demo folder. The toplevel Demo folder has |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 110 | machine-independent demos. |
| 111 | The Mac:Lib:test folder also has some programs that show simple |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 112 | capabilities of various modules. |
| 113 | |
| 114 | The "scripts" folder has some sample scripts. Some are useful, some are |
| 115 | just interesting to look at to see how various things work. The MkDistr, |
| 116 | mkapplet and fullbuild scripts (plus the ones mentioned above) may help |
| 117 | you to understand how to use AppleEvents and various other toolboxes |
| 118 | from python. |
| 119 | |
| 120 | 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] | 121 | formats is included, but without documentation. You can find docs at |
| 122 | ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there). |
| 123 | |
| 124 | Finally there is a Mac:Contrib folder which contains some contributed |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 125 | software. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 126 | |
| 127 | Upgrading from older Python releases |
| 128 | ------------------------------------ |
| 129 | |
| 130 | Since release 1.4 Python releases are independent of each other, with |
| 131 | separate Preferences files, shared library names, etc. The good news is |
| 132 | that this means you can keep your older version around if you are unsure |
| 133 | whether to upgrade. The bad news is that your old preference settings |
| 134 | are lost and you have to set them again. |
| 135 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 136 | After you are satisfied that 1.6a2 works as expected you can trash |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 137 | anything in the system folder that has "python" in the name and not |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 138 | "1.6a2". |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 139 | |
| 140 | The installer |
| 141 | ------------- |
| 142 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 143 | The installer for this product was created using Installer VISE |
| 144 | from MindVision Software. For more information on Installer VISE, |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 145 | contact: |
| 146 | MindVision Software |
| 147 | 7201 North 7th Street |
| 148 | Lincoln, NE 68521-8913 |
| 149 | Voice: 402-477-3269 |
| 150 | Fax: 402-477-1395 |
| 151 | Internet: mindvision@mindvision.com |
| 152 | http://www.mindvision.com |
| 153 | |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 154 | Just van Rossum <just@letterror.nl> created the initial version of the |
| 155 | installer (with Installer Vise Lite), and Jack worked from there. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 156 | |
Jack Jansen | 01ae9eb | 2000-04-22 22:57:25 +0000 | [diff] [blame] | 157 | Thanks! |
| 158 | ------- |
| 159 | |
| 160 | Thanks go to the whole Python community with Guido in the lead, of course. |
| 161 | Mac-specific thanks go to the pythonmac-sig, Just van Rossum, Corran Webster, |
Jack Jansen | e82fad7 | 2000-07-18 09:41:31 +0000 | [diff] [blame] | 162 | Erik van Blokland, Bill Bedford, Chris Stern, Gordon Worley, Oliver Steele, M. Papillon |
| 163 | and all the other people who provided feedback, code or both! |
Jack Jansen | 01ae9eb | 2000-04-22 22:57:25 +0000 | [diff] [blame] | 164 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 165 | Feedback |
| 166 | -------- |
| 167 | |
| 168 | Send bug reports, suggestions, contributions and fanmail to |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 169 | <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] | 170 | <pythonmac-sig@python.org> mailing list, which is explicitly meant for |
| 171 | this purpose. |
| 172 | |
| 173 | Alternatively, you can try sending to comp.lang.python or |
| 174 | python-list@cwi.nl, but since I read the newsgroup, not the mailinglist, |
| 175 | I may miss it there (but other people may know quite a bit more than me |
| 176 | anyway:-). |
| 177 | |
| 178 | Jack Jansen |
Jack Jansen | 12a37b7 | 2000-05-06 23:01:07 +0000 | [diff] [blame] | 179 | Oratrix Development BV |
| 180 | Valeriusplein 30 |
| 181 | Amsterdam |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 182 | the Netherlands |
| 183 | |
| 184 | <jack@cwi.nl>, http://www.cwi.nl/~jack |