1 Building wxPython on Mac OS X
2 -----------------------------
4 NOTE: OS X support is HIGHLY EXPERIMENTAL at this time. Most things
5 are working now, but a few still don't. I know about most of
6 them and am addressing them as I have time. If you have any
7 ideas about a fix for the stuff that's still broken then
8 please persue them and send the fixes to me.
11 These are the steps I have used for building wxPython on Mac OS X 10.1
12 with the Apple Developer Tools, a.k.a the Darwin version. I assume
13 that you know your way around a command line and that you know how to
14 get things from various CVS repositories as needed.
17 1. Python 2.2 is required. There is a disk image with an installer
18 package in the wxPython Sourceforge download area, in this group:
20 http://sourceforge.net/project/showfiles.php?group_id=10718&release_id=84730
22 If, for some reason you need to build your own Python, get the
23 source from www.python.org and follow theinstructions in the
24 Mac/OSX/README file to build and install Python.app and the
27 If you build your own Python then you may want to make a symlink or
28 two in /usr/local/bin so that this version of Python can be found
29 from the command line. For example:
32 sudo ln -s /Library/Frameworks/Python.framework/Versions/2.2/bin/python2.2 python2.2
33 sudo ln -s python2.2 python
35 Also, if you create a /usr/local/bin/pythonw script like the
36 following then you can run Python GUI apps (like wxPython) directly
37 from the command line:
40 exec /Applications/Python.app/Contents/MacOS/python $@
42 Be sure to give this script execute permissions:
44 sudo chmod +x /usr/local/bin/pythonw
46 If you would like to make a MachoPython installer from what you
47 built then you may want to look at the scripts I use to do it
48 located in wxPython/distrib/mac/buildPython.
50 One last thing, make sure that /usr/local/bin is in your PATH
54 2. In a wxWindows CVS tree make a build directory.
56 cd ~/proj/wxWindows # or wherever you put it
59 3. Run configure from that build directory.
62 ../configure --with-mac --with-opengl --enable-debug
64 4. Make and install wxMac.
69 5. Build and install wxPython.
72 python setup.py IN_CVS_TREE=1 build install
74 6. Test. Just navigate in the Finder to the demo directory and double
75 click demo.py, or simple.py, or whatever you want to run. Or from
76 a command line you can run it this way:
81 7. Figure out what's wrong, figure out how to fix it, and then send
82 the patches to me. <wink>