]>
Commit | Line | Data |
---|---|---|
b6e5c445 RD |
1 | Building wxPython on Mac OS X |
2 | ----------------------------- | |
3 | ||
05d61b69 | 4 | |
1e4a197e | 5 | These are the steps I have used for building wxPython on Mac OS X 10.x |
b6e5c445 RD |
6 | with the Apple Developer Tools, a.k.a the Darwin version. I assume |
7 | that you know your way around a command line and that you know how to | |
8 | get things from various CVS repositories as needed. | |
9 | ||
10 | ||
1e4a197e RD |
11 | 1. "MacPython-OSX" 2.3 is required. There is a disk image with an |
12 | installer package in the wxPython Sourceforge download area, in | |
13 | this group: | |
05d61b69 RD |
14 | |
15 | http://sourceforge.net/project/showfiles.php?group_id=10718&release_id=84730 | |
b6e5c445 | 16 | |
05d61b69 | 17 | If, for some reason you need to build your own Python, get the |
1e4a197e RD |
18 | source from www.python.org and follow the instructions in the |
19 | Mac/OSX/README file to build and install the Python.framework and | |
20 | Python tools. | |
05d61b69 RD |
21 | |
22 | One last thing, make sure that /usr/local/bin is in your PATH | |
1e4a197e RD |
23 | environment variable since that is where the new python and pythonw |
24 | commands will be located. | |
05d61b69 RD |
25 | |
26 | ||
1e4a197e RD |
27 | 2. In a wxWindows CVS tree make a build directory. (You can also use |
28 | a CVS snapshot located in http://wxwindows.org/snapshots/ or the | |
29 | released wxPythonSrc-*.tr.gz archive.) | |
b6e5c445 RD |
30 | |
31 | cd ~/proj/wxWindows # or wherever you put it | |
32 | mkdir build | |
33 | ||
05d61b69 | 34 | 3. Run configure from that build directory. |
b6e5c445 RD |
35 | |
36 | cd build | |
37 | ../configure --with-mac --with-opengl --enable-debug | |
38 | ||
05d61b69 | 39 | 4. Make and install wxMac. |
b6e5c445 RD |
40 | |
41 | make | |
42 | sudo make install | |
43 | ||
05d61b69 | 44 | 5. Build and install wxPython. |
b6e5c445 RD |
45 | |
46 | cd ../wxPython | |
1e4a197e RD |
47 | python setup.py build install |
48 | ||
49 | If you would like to install to someplace besides the Python | |
50 | site-packages directory (such as to your home directory) then you | |
51 | can add "--root=<path>" after the "install" command. To use | |
52 | wxPython like this you'll need to ensure that the directory | |
53 | containing wxPyrthon is contained in in the PYTHONPATH environment | |
54 | variable. | |
b6e5c445 | 55 | |
05d61b69 | 56 | 6. Test. Just navigate in the Finder to the demo directory and double |
f54a35fe RD |
57 | click demo.py, or simple.py, or whatever you want to run. Or from |
58 | a command line you can run it this way: | |
59 | ||
05d61b69 RD |
60 | cd demo |
61 | pythonw demo.py | |
b6e5c445 | 62 | |
05d61b69 | 63 | 7. Figure out what's wrong, figure out how to fix it, and then send |
b6e5c445 RD |
64 | the patches to me. <wink> |
65 | ||
66 | --Robin | |
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 |