blob: 4c8dc0a1d497758890384fc37264caedc8be2d7a [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
Jack Jansenb2fb2022001-12-09 23:17:38 +00009 configure --enable-framework
Jack Jansen0511b762001-09-06 16:36:42 +0000102. 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.
Jack Jansen408c16f2001-09-11 11:30:02 +0000186. To actually find the Lib directory installed in step 5 you add a line
19 to your site.py file (the one in /Library/Frameworks/....):
20 sys.path.append(os.path.join(sys.prefix, 'Mac/Lib'))
21
Jack Jansen0511b762001-09-06 16:36:42 +000022You are now done. In your Applications you should have a "Python", with the icon
23being a falling 16 Ton weight with a shadow under it. You can drop Python scripts
24on this and the will be run, in a full-windowing environment. Note that you
25do not get sys.stdin, and that sys.stdout goes to the console (Use
26Applications/Utilities/Console to see it).
27
Jack Jansen408c16f2001-09-11 11:30:02 +000028For some reason the application only accepts files with TEXT type, not straight unix
29typeless files.
30
Jack Jansen0511b762001-09-06 16:36:42 +000031Something to take note of is that the ".rsrc" files in the distribution are not
32actually resource files, they're AppleSingle encoded resource files.
33
Jack Jansen408c16f2001-09-11 11:30:02 +000034 Jack Jansen, jack@oratrix.com, 11-Sep-01.