1 Building wxPython on Mac OS X
2 -----------------------------
4 NOTE: OS X support is HIGHLY EXPERIMENTAL at this time. Most things
5 don't work correctly (or at all) yet.
7 These are the steps I have used for building wxPython on Mac OS X 10.1
8 with the Apple Developer Tools, a.k.a the Darwin version. I assume
9 that you know your way around a command line and that you know how to
10 get things from various CVS repositories as needed.
13 1. Python 2.2 is required. Get the source from www.python.org and
14 build Python.app and install it as described in the Mac/OSX/README
17 2. You may want to make a symlink or two in /usr/local/bin so that
18 this version of Python can be found from the command line. For
22 sudo ln -s /Library/Frameworks/Python.framework/Versions/2.2/bin/python2.2 python2.2
23 sudo ln -s python2.2 python
25 3. In a wxWindows CVS tree make a build directory.
27 cd ~/proj/wxWindows # or wherever you put it
30 4. Run configure from that build directory.
33 ../configure --with-mac --with-opengl --enable-debug
35 5. Make and install wxMac.
40 6. Build wxPython for testing (without installing it.)
43 python setup.py IN_CVS_TREE=1 build_ext --inplace --debug
45 7. Test. The easiest way to do this from the CVS tree (witout having
46 to reinstall after every build) is to make a symlink in the demo
47 directory to the wxPython package dir, and then run stuff directly
53 8. Now just navigate in the Finder to the demo directory and double
54 click demo.py, or simple.py, or whatever you want to run. Or from
55 a command line you can run it this way:
57 open -a Python demo.py
59 9. Figure out what's wrong, figure out how to fix it, and then send
60 the patches to me. <wink>