diff -r 4b7e3d45ba4a vendor/boost/boost/python/detail/wrap_python.hpp
a
|
b
|
|
70 | 70 | #endif |
71 | 71 | |
72 | 72 | // |
| 73 | // Latest versions of OSX ship Python as a framework |
| 74 | // |
| 75 | #if defined(__APPLE__) |
| 76 | # define BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK |
| 77 | #endif |
| 78 | // |
| 79 | |
| 80 | // |
73 | 81 | // Get ahold of Python's version number |
74 | 82 | // |
| 83 | #if defined(BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK) |
| 84 | # include <Python/patchlevel.h> |
| 85 | #else |
75 | 86 | #include <patchlevel.h> |
| 87 | #endif |
76 | 88 | |
77 | 89 | #if PY_MAJOR_VERSION<2 || PY_MAJOR_VERSION==2 && PY_MINOR_VERSION<2 |
78 | 90 | #error Python 2.2 or higher is required for this version of Boost.Python. |
… |
… |
|
138 | 150 | |
139 | 151 | #if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 2 && PY_MICRO_VERSION < 2 |
140 | 152 | # include <boost/python/detail/python22_fixed.h> |
| 153 | #elif defined(BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK) |
| 154 | # include <Python/Python.h> |
141 | 155 | #else |
142 | 156 | # include <Python.h> |
143 | 157 | #endif |
diff -r 4b7e3d45ba4a vendor/boost/libs/python/src/converter/from_python.cpp
a
|
b
|
|
40 | 40 | , registration const& converters) |
41 | 41 | { |
42 | 42 | rvalue_from_python_stage1_data data; |
| 43 | data.construct = 0; |
43 | 44 | |
44 | 45 | // First check to see if it's embedded in an extension class |
45 | 46 | // instance, as a special case. |
diff -r 4b7e3d45ba4a vendor/boost/libs/python/src/object/class.cpp
a
|
b
|
|
5 | 5 | |
6 | 6 | #include <boost/python/detail/prefix.hpp> |
7 | 7 | #include <boost/mpl/lambda.hpp> // #including this first is an intel6 workaround |
| 8 | #include <boost/python/detail/wrap_python.hpp> |
8 | 9 | |
9 | 10 | #include <boost/python/object/class.hpp> |
10 | 11 | #include <boost/python/object/instance.hpp> |
… |
… |
|
25 | 26 | #include <vector> |
26 | 27 | #include <cstddef> |
27 | 28 | #include <new> |
| 29 | |
| 30 | #ifdef BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK |
| 31 | # include <Python/structmember.h> |
| 32 | #else |
28 | 33 | #include <structmember.h> |
| 34 | #endif |
29 | 35 | |
30 | 36 | namespace boost { namespace python { |
31 | 37 | |
diff -r 4b7e3d45ba4a vendor/boost/libs/python/src/object/enum.cpp
a
|
b
|
|
3 | 3 | // accompanying file LICENSE_1_0.txt or copy at |
4 | 4 | // http://www.boost.org/LICENSE_1_0.txt) |
5 | 5 | |
| 6 | #include <boost/python/detail/wrap_python.hpp> |
6 | 7 | #include <boost/python/object/enum_base.hpp> |
7 | 8 | #include <boost/python/cast.hpp> |
8 | 9 | #include <boost/python/scope.hpp> |
… |
… |
|
12 | 13 | #include <boost/python/str.hpp> |
13 | 14 | #include <boost/python/extract.hpp> |
14 | 15 | #include <boost/python/object_protocol.hpp> |
| 16 | |
| 17 | #if defined(BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK) |
| 18 | # include <Python/structmember.h> |
| 19 | #else |
15 | 20 | #include <structmember.h> |
| 21 | #endif |
16 | 22 | |
17 | 23 | namespace boost { namespace python { namespace objects { |
18 | 24 | |