Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 1 | How to install Python 1.5b3 on your Macintosh |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +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 | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 14 | Why 1.5b3? |
| 15 | ---------- |
| 16 | The reason for distributing a third beta release for the Mac (unlike for |
| 17 | other platforms) is that there are still some problems. The main problem |
| 18 | is that packages ("dotted import") seem to have problems when used |
| 19 | under cfm68k. Other outstanding problems are tkinter problems with menus |
| 20 | (all platforms) and NumPy printing problems (cfm68k). Please report your |
| 21 | findings with this distribution to pythonmac-sig@python.org, so we can |
| 22 | try to iron out the problems and have a normal 1.5 distribution in a few |
| 23 | weeks time. |
| 24 | |
| 25 | The non-system-dependent part of this distribution is identical to 1.5 final. |
| 26 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 27 | What to install |
| 28 | --------------- |
| 29 | |
| 30 | There are three flavors of Python: PowerPC, cfm68k and Classic 68k (the |
| 31 | FAT flavor is just a combination of the first two, which is handy if you |
| 32 | want to install Python on a fileserver or so). 68K-mac owners should |
| 33 | definitely use the cfm68k version if possible, since it enables the use |
| 34 | of applets and dynamically loaded modules and usually has a smaller |
| 35 | memory footprint. It does however need the CFM68K Runtime Enabler which |
| 36 | is available from Apple (available for free from |
| 37 | <http://support.info.apple.com/ftp/swhome.html>, included since MacOS |
| 38 | 7.6.1). If your machine is pre-68020 you cannot use cfm68k and you can |
| 39 | install the classic 68k Python. |
| 40 | |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 41 | After the installer finishes it automatically launches the |
| 42 | ConfigurePython applet, to finish configuration of your Python |
| 43 | installation (except for classic 68K installations, where no extra |
| 44 | configuration is needed). |
| 45 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 46 | If you have a pre-system 7 macintosh: sorry, this release will not work |
| 47 | on your system. Too many sys7 features are used to make a sys6 python |
| 48 | easy to create. |
| 49 | |
| 50 | If you don't have enough memory: the sizes choosen are somewhat |
| 51 | arbitrary. Try lowering the application sizes in the finder "get info" |
| 52 | window, and seeing whether the resulting python is still usable. Some |
| 53 | modules (Tkinter comes to mind) need a lot of memory, so it may also be |
| 54 | necessary to increase the application size. |
| 55 | |
| 56 | A final note to CFM68K (and possibly PPC) users: the Code Fragment |
| 57 | Manager can (incorrectly) produce "library not found" and other strange |
| 58 | error messages when it really means that there is not enough room in the |
| 59 | system heap. Decreasing (yes, *de*creasing) the size of the interpreter |
| 60 | and/or enabling virtual memory may solve these problems. |
| 61 | |
| 62 | After installing |
| 63 | ---------------- |
| 64 | |
Jack Jansen | 0188172 | 1998-02-20 15:46:35 +0000 | [diff] [blame] | 65 | The first step thing you could try is to run "compileall.py" to create |
| 66 | all .pyc files, but this isn't very important, as pyc files are |
| 67 | created on-the-fly as well. You may also want to skip this step if you |
| 68 | are low on diskspace. |
| 69 | |
| 70 | Next, it is probably a good idea to run the automatic tests. Start Python |
| 71 | and "import test.autotest". This should not print any errors. It will, |
| 72 | however, print some messages about optional features not |
| 73 | supported. Also, if you didn't run compileall before autotesting you |
| 74 | may run out of memory the first time you run the tests. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 75 | |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 76 | NOTE: as of 1.5b3 the test test_strftime will fail. This is due to a |
| 77 | problem with the way the MetroWerks handles %% escapes in strftime() |
| 78 | strings, and there is little I can do about it. test_socket may also |
| 79 | fail if you have no internet connection. Please also read the Relnotes |
| 80 | file for other minor problems with this distribution. |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 81 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 82 | PPC and CFM68K users have a couple of applets in the main folder they |
| 83 | may want to try, (68K users can use the corresponding scripts from the |
| 84 | "scripts" folder): |
| 85 | |
| 86 | - EditPythonPrefs allows you to edit the preferences file, to change the |
| 87 | python home folder or modify the initial sys.path setting. The default |
| 88 | settings are somewhat arbitrary, you can remove tkinter if you don't use |
| 89 | it and possibly add Extensions:img:Lib. - mkapplet creates a python |
| 90 | applet, a tiny application written in python. Drop a python source on it |
| 91 | and out comes the application. More information can be found in the |
| 92 | "Mac:Demo" folder. |
| 93 | |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 94 | If you have a slow machine you may want to disable automatic site.py import |
| 95 | since site.py does not do too much on the mac (unless you make it do |
| 96 | something), and it can take a few seconds. |
| 97 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 98 | PPC and CFM68K users will see one more file in the python folder: |
| 99 | PythonApplet. This is the template for building applets, leave it alone. |
| 100 | The applet is "fat", containing both PPC and CFM68K code. Hence, applets |
| 101 | built with it can be transported to machines with the other |
| 102 | architecture. |
| 103 | |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 104 | Uninstalling |
| 105 | ------------ |
| 106 | |
| 107 | Two items are installed in the system folder: the interpreter shared |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 108 | library "PythonCore 1.5b3" lives in the Extensions folder and the |
| 109 | "Python 1.5b3 Preferences" file in the Preferences folder. All the rest |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 110 | of Python lives in the folder you installed in. |
| 111 | |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 112 | Things to see |
| 113 | ------------- |
| 114 | |
| 115 | There are some readme files in the "Read me files" folder that may |
| 116 | contain useful information. There is also a first stab at documentation |
| 117 | (plus examples) in the Mac:Demo folder. The toplevel Demo folder has |
| 118 | machine-independent demos. See the file Readme-mac for mac-specific |
| 119 | notes. The Mac:Lib:test folder also has some programs that show simple |
| 120 | capabilities of various modules. |
| 121 | |
| 122 | The "scripts" folder has some sample scripts. Some are useful, some are |
| 123 | just interesting to look at to see how various things work. The MkDistr, |
| 124 | mkapplet and fullbuild scripts (plus the ones mentioned above) may help |
| 125 | you to understand how to use AppleEvents and various other toolboxes |
| 126 | from python. |
| 127 | |
| 128 | The 'img' group of modules, which handles I/O of many different image |
| 129 | formats (not pict yet, sigh:-) is included, but without documentation. |
| 130 | You can find docs at ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere |
| 131 | around there). |
| 132 | |
| 133 | Upgrading from older Python releases |
| 134 | ------------------------------------ |
| 135 | |
| 136 | Since release 1.4 Python releases are independent of each other, with |
| 137 | separate Preferences files, shared library names, etc. The good news is |
| 138 | that this means you can keep your older version around if you are unsure |
| 139 | whether to upgrade. The bad news is that your old preference settings |
| 140 | are lost and you have to set them again. |
| 141 | |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 142 | After you are satisfied that 1.5b2 works as expected you can trash |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 143 | anything in the system folder that has "python" in the name and not |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 144 | "1.5b2". |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 145 | |
| 146 | The installer |
| 147 | ------------- |
| 148 | |
| 149 | The installer for this product was created using Installer VISE Lite |
| 150 | from MindVision Software. For more information on Installer VISE Lite, |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 151 | contact: |
| 152 | MindVision Software |
| 153 | 7201 North 7th Street |
| 154 | Lincoln, NE 68521-8913 |
| 155 | Voice: 402-477-3269 |
| 156 | Fax: 402-477-1395 |
| 157 | Internet: mindvision@mindvision.com |
| 158 | http://www.mindvision.com |
| 159 | |
Jack Jansen | 0b72695 | 1997-10-08 15:34:42 +0000 | [diff] [blame] | 160 | Just van Rossum <just@knoware.nl> created the installer in just a couple |
| 161 | of days (hours?). |
Jack Jansen | 83cab72 | 1997-08-26 13:25:06 +0000 | [diff] [blame] | 162 | |
| 163 | Feedback |
| 164 | -------- |
| 165 | |
| 166 | Send bug reports, suggestions, contributions and fanmail to |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 167 | <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] | 168 | <pythonmac-sig@python.org> mailing list, which is explicitly meant for |
| 169 | this purpose. |
| 170 | |
| 171 | Alternatively, you can try sending to comp.lang.python or |
| 172 | python-list@cwi.nl, but since I read the newsgroup, not the mailinglist, |
| 173 | I may miss it there (but other people may know quite a bit more than me |
| 174 | anyway:-). |
| 175 | |
| 176 | Jack Jansen |
| 177 | Centrum voor Wiskunde en Informatica |
| 178 | Kruislaan 413 |
| 179 | 1098 SJ Amsterdam |
| 180 | the Netherlands |
| 181 | |
| 182 | <jack@cwi.nl>, http://www.cwi.nl/~jack |