| 99 | |
| 100 | '''OS X & Multiple Python Installations''' |
| 101 | |
| 102 | If you're building on OS X and have several different versions of python installed you might want to pick which python to link against. To do so, you'll need to use ccmake to edit 4 CMake python variables. |
| 103 | |
| 104 | For instance if you want to link against the version of python that ships with OS X, you need to use the following settings. |
| 105 | |
| 106 | {{{ |
| 107 | PYTHON_DEBUG_LIBRARY = -F/System/Library/Frameworks -framework Python |
| 108 | PYTHON_LIBRARY = -F/System/Library/Frameworks -framework Python |
| 109 | PYTHON_EXECUTABLE = /usr/bin/python2.3 |
| 110 | PYTHON_INCLUDE = /usr/include/python2.3 |
| 111 | }}} |
| 112 | |
| 113 | -F needs to be set to which the base path of whatever framework you want to force to be used, and it needs to precede the -framework you want to force. |
| 114 | |