[Pythonmac-SIG] Mac{ho}Python architecture ready for review
Jack Jansen
Jack.Jansen@cwi.nl
Fri, 2 Aug 2002 17:43:05 +0200
Folks,
if you check out the current head of the CVS repository you'll get all
the applet and
launcher and other stuff that I plan to include in 2.3. Let me know what
you think.
Here's the quick instructions:
1. configure --enable-framework
2. make
3. make frameworkinstall
4. make osxapps
The last step will do all the goodies. It'll create a folder
/Applications/Python
that contains PythonLauncher, PythonIDE and BuildApplet. Also, there
will be a hidden
application
/Library/Frameworks/Python.framework/Versions/Current/Resources/Python.app
that is
used both for executing .pyw scripts by PythonLauncher and as the applet
template by BuildApplet
and PythonIDE.
Applets can be created with sys.argv emulation, i.e. if you drop files
on them your
script will see the pathnames of the files in sys.argv. This is the
default. Alternatively
scripts can do their own AppleEvent handling, PythonIDE does this, but
you have to invoke
BuildApplet form the commandline currently to get that behaviour.
A couple of bells and whistles are still needed. Here's what I can come
up with, please
suggest more:
- icons for the .pyw file type and for BuildApplet,
- a way to associate .py and .pyw files with either PythonIDE or
PythonLauncher from within PythonIDE
- moving stuff out of python.rsrc into a library rsrc file so applets
become a lot smaller and
faster to create.
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma
Goldman -