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