1996-08-28 10:51:11 -03:00
|
|
|
How to install Python 1.4 on your Macintosh
|
1995-09-01 08:49:11 -03:00
|
|
|
------------------------------------------------
|
|
|
|
|
|
|
|
Even if you don't usually read readme files: please read at least the
|
|
|
|
first sections of this file, failure to do so will probably result in
|
|
|
|
an unuseable python system. If this warning is too late and you already
|
|
|
|
have an non-functional python: it is best to remove all traces and start
|
|
|
|
with a fresh distribution. Especially don't forget to remove the
|
|
|
|
"python preferences" file from the Preferences folder, and possibly
|
1996-08-28 10:51:11 -03:00
|
|
|
"PythonCore", "PythonCorePPC" and/or "PythonCoreCFM68K"
|
|
|
|
from the Extensions folder. Before you mail me for help *please*
|
1996-05-20 08:22:41 -03:00
|
|
|
try the steps above (cleaning up and re-installing): it should fix most
|
1996-08-28 10:51:11 -03:00
|
|
|
common mistakes. If you are installing a CFM68K python also check that
|
|
|
|
your installation of CFM68K was done correctly.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
1996-05-20 08:22:41 -03:00
|
|
|
If this is your first encounter with Python: you definitely need the common
|
1995-09-01 08:49:11 -03:00
|
|
|
user documentation (common to all platforms). You can find this (in various
|
1995-09-24 18:08:22 -03:00
|
|
|
forms) on www.python.org and ftp.python.org.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
1996-05-20 08:22:41 -03:00
|
|
|
Mac-specific documentation is included in this distribution in folder Mac:Demo.
|
|
|
|
The documentation is sparse, but it will have to serve for now. The documentation
|
|
|
|
is in HTML format, start with index.html.
|
|
|
|
|
1995-09-01 08:49:11 -03:00
|
|
|
If you have a pre-system 7 macintosh: sorry, this release will not work
|
|
|
|
on your system. Too many sys7 features are used to make a sys6 python
|
|
|
|
easy to create. If you really want one: tell me, maybe I can be convinced.
|
|
|
|
Alternatively: get the sources, put in the necessary gestalt() and
|
|
|
|
compatability calls yourself and send me the results.
|
|
|
|
|
|
|
|
If you don't have enough memory: the sizes choosen are somewhat arbitrary.
|
|
|
|
Try lowering them and seeing whether the resulting python is still usable.
|
1995-10-03 11:40:35 -03:00
|
|
|
Note, however, that python running out of memory may result in your mac
|
1996-04-10 11:56:32 -03:00
|
|
|
freezing. If this happens I would like to hear of it.
|
|
|
|
|
|
|
|
Note that if you're using Tk you might want to raise the memory size, tcl
|
|
|
|
and tk are quite a memory hog.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
1996-08-28 10:51:11 -03:00
|
|
|
A final note to CFM68K (and possibly PPC) users: the Code Fragment Manager
|
|
|
|
can (incorrectly) produce "library not found" and other strange error messages
|
|
|
|
when it really means that there is not enough room in the system heap. Decreasing
|
|
|
|
(yes, *de*creasing) the size of the interpreter and/or enabling virtual memory
|
|
|
|
may solve these problems.
|
|
|
|
|
1995-09-01 08:49:11 -03:00
|
|
|
PowerPC Macintosh instructions
|
|
|
|
------------------------------
|
|
|
|
|
1996-08-28 10:51:11 -03:00
|
|
|
1. Remove older versions of "PythonCorePPC", "PythonCore" and "Python Preferences"
|
1995-10-09 20:26:05 -03:00
|
|
|
from your system folder.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
1995-10-09 20:26:05 -03:00
|
|
|
2. Run the MkPluginAliases applet. This will first ask you whether it should
|
|
|
|
create an initial preferences file. Let it do so. Next, it will create a
|
|
|
|
number of aliases in the PlugIns folder. If this fails in mysterious ways
|
1996-05-20 08:22:41 -03:00
|
|
|
examine the script (in Mac:scripts:MkPluginAliases.py) and create the aliases
|
|
|
|
by hand (and tell me what you did to make the script fail:-).
|
1995-10-09 20:26:05 -03:00
|
|
|
|
|
|
|
3. To make sure any applets you create can find the common interpreter code
|
1996-08-28 10:51:11 -03:00
|
|
|
you should move PythonCorePPC to the Extensions folder (drop it on the
|
1995-09-24 18:08:22 -03:00
|
|
|
System Folder and it will find its own way). Alternatively, you can
|
1996-08-28 10:51:11 -03:00
|
|
|
make an alias called "PythonCorePPC" in the Extensions folder and
|
|
|
|
point it to the real PythonCorePPC. You may want to start PythonPPC
|
1995-09-24 18:08:22 -03:00
|
|
|
again at this point to check that you actually put the extension in
|
|
|
|
the right place.
|
|
|
|
|
1995-10-09 20:26:05 -03:00
|
|
|
4. You're all set now. Continue with the common instructions.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
1996-08-28 10:51:11 -03:00
|
|
|
CFM68K Macintosh instructions
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
For this you need a Mac with a 68020, 68030 or 68040, and at least System 7.1.1.
|
|
|
|
CFM68K Python will not run on PowerPC Macs.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
1996-08-28 10:51:11 -03:00
|
|
|
1. Install the stuff from the "CFM68K for System Folder" into the Extensions
|
|
|
|
folder and restart.
|
|
|
|
|
|
|
|
2. Continue with the PowerPC instructions, but read "CFM68K" every time you see
|
|
|
|
"PPC".
|
|
|
|
|
|
|
|
Classic 68K Macintosh instructions
|
|
|
|
----------------------------------
|
|
|
|
|
|
|
|
1. Remove the old "Python Preferences" file from the Preferences folder, if there is one.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
|
|
|
2. Run Python68K. This will create an initial preferences file (after
|
1995-10-09 20:26:05 -03:00
|
|
|
asking you if that's ok with you). Quit python.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
|
|
|
3. Continue with the next section.
|
|
|
|
|
|
|
|
Common instructions
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
You should now have a functioning python. It is probably a good idea to run
|
|
|
|
"testall.py" from :Lib:test at this point, this should not give any errors.
|
1995-10-03 11:40:35 -03:00
|
|
|
Running testall.py is done by double-clicking it or dropping it onto the
|
|
|
|
interpreter.
|
1995-09-01 08:49:11 -03:00
|
|
|
Next, try "compileall.py" from :Lib to create all .pyc files (but this isn't
|
|
|
|
really important).
|
|
|
|
|
1996-08-28 10:51:11 -03:00
|
|
|
PPC and CFM68K users have a couple of applets in the main folder they may want to try,
|
1995-09-01 08:49:11 -03:00
|
|
|
(68K users can use the corresponding scripts from the "scripts" folder):
|
|
|
|
|
|
|
|
- EditPythonPrefs allows you to edit the preferences file, to change the
|
|
|
|
python home folder or modify the initial sys.path setting.
|
1996-08-28 10:51:11 -03:00
|
|
|
The default settings are somewhat arbitrary, you can remove tkinter if
|
|
|
|
you don't use it and possibly add Extensions:img:Lib.
|
|
|
|
- mkapplet creates a python applet, a tiny application written
|
1995-09-01 08:49:11 -03:00
|
|
|
in python. Drop a python source on it and out comes the application. More
|
1996-05-20 08:22:41 -03:00
|
|
|
information can be found in the "Mac:Demo" folder.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
1996-08-28 10:51:11 -03:00
|
|
|
PPC and CFM68K users will see one more files in the python folder: PythonApplet. This is
|
|
|
|
the template for building applets, leave it alone. For the 1.4b3 release the applet is
|
|
|
|
specific for your installation, i.e. PPC applets will not run on CFM68K machines and vice
|
|
|
|
versa. I hope to fix this soon.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
|
|
|
Things to see
|
|
|
|
-------------
|
|
|
|
|
|
|
|
There are some readme files in the "Read me files" folder that may contain
|
1996-05-20 08:22:41 -03:00
|
|
|
useful information. There is also a first stab at documentation (plus examples)
|
|
|
|
in the Mac:Demo folder. The toplevel Demo folder has machine-independent demos.
|
|
|
|
See the file Readme-mac for mac-specific notes. The Mac:Lib:test folder also
|
|
|
|
has some programs that show simple capabilities of various modules.
|
1995-09-01 08:49:11 -03:00
|
|
|
|
|
|
|
The "scripts" folder has some sample scripts. Some are useful, some are just
|
|
|
|
interesting to look at to see how various things work. The MkDistr, mkapplet
|
|
|
|
and fullbuild scripts (plus the ones mentioned above) may help you to understand
|
|
|
|
how to use AppleEvents and various other toolboxes from python.
|
|
|
|
|
|
|
|
The 'img' group of modules, which handles I/O of many different image formats
|
|
|
|
(not pict yet, sigh:-) is included, but without documentation. You can find
|
|
|
|
docs at ftp://ftp.cwi.nl/pub/jack/python/img (or somewhere around there).
|
|
|
|
|
|
|
|
Feedback
|
|
|
|
--------
|
|
|
|
|
|
|
|
Send bug reports, suggestions, contributions and fanmail to <jack@cwi.nl>.
|
1996-08-28 10:51:11 -03:00
|
|
|
Be warned however that I'm pretty busy, so I may not always
|
1995-09-01 08:49:11 -03:00
|
|
|
respond immedeately.
|
1996-08-28 10:51:11 -03:00
|
|
|
|
|
|
|
A better way to discuss MacPython is to join the <pythonmac-sig@python.org>
|
|
|
|
mailing list, which is explicitly meant for this purpose.
|
|
|
|
|
1995-09-01 08:49:11 -03:00
|
|
|
Alternatively, you can try sending to comp.lang.python or python-list@cwi.nl,
|
|
|
|
but since I read the newsgroup, not the mailinglist, I may miss it there
|
|
|
|
(but other people may know quite a bit more than me anyway:-).
|
|
|
|
|
|
|
|
Jack Jansen
|
|
|
|
Centrum voor Wiskunde en Informatica
|
|
|
|
Kruislaan 413
|
|
|
|
1098 SJ Amsterdam
|
|
|
|
the Netherlands
|
|
|
|
|
|
|
|
<jack@cwi.nl>, http://www.cwi.nl/~jack
|