blob: b759e488901dc416f4b2a420312d8e64049e866a [file] [log] [blame]
Jack Jansen0511b762001-09-06 16:36:42 +00001This directory contains a Makefile that will create a proof-of-concept
2Mac OS X application for Python. The process is far from streamlined,
3and it will definitely change in future releases of Python, but I wanted to
4include this in the current distribution so people could play with it.
5
6To create a fullblown Python.app proceed as follows.
7
81. In the main Python source directory configure python with
9 configure --enable-framework --with-suffix
102. Do a "make clean" if you did a previous build, then "make".
113. Install this as a framework with "make frameworkinstall". This puts a Python
12 framework into /Library/Frameworks.
134. Come back here (Mac/OSX) and build and install the application,
14 with "make install".
155. It is probably a good idea to add the Mac-specific modules to the framework,
16 with "make installmacsubtree". This puts a MacPython lib directory into
17 sys.prefix/Mac/Lib. Again, this is a temporary measure.
18
19You are now done. In your Applications you should have a "Python", with the icon
20being a falling 16 Ton weight with a shadow under it. You can drop Python scripts
21on this and the will be run, in a full-windowing environment. Note that you
22do not get sys.stdin, and that sys.stdout goes to the console (Use
23Applications/Utilities/Console to see it).
24
25Something to take note of is that the ".rsrc" files in the distribution are not
26actually resource files, they're AppleSingle encoded resource files.
27
28 Jack Jansen, jack@oratrix.com, 6-Sep-01.