diff -r 4b7e3d45ba4a vendor/boost/boost/python/detail/wrap_python.hpp --- a/vendor/boost/boost/python/detail/wrap_python.hpp Mon Nov 23 06:21:18 2009 +0000 +++ b/vendor/boost/boost/python/detail/wrap_python.hpp Wed May 19 15:07:14 2010 -0400 @@ -70,9 +70,21 @@ #endif // +// Latest versions of OSX ship Python as a framework +// +#if defined(__APPLE__) +# define BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK +#endif +// + +// // Get ahold of Python's version number // +#if defined(BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK) +# include +#else #include +#endif #if PY_MAJOR_VERSION<2 || PY_MAJOR_VERSION==2 && PY_MINOR_VERSION<2 #error Python 2.2 or higher is required for this version of Boost.Python. @@ -138,6 +150,8 @@ #if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 2 && PY_MICRO_VERSION < 2 # include +#elif defined(BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK) +# include #else # include #endif diff -r 4b7e3d45ba4a vendor/boost/libs/python/src/converter/from_python.cpp --- a/vendor/boost/libs/python/src/converter/from_python.cpp Mon Nov 23 06:21:18 2009 +0000 +++ b/vendor/boost/libs/python/src/converter/from_python.cpp Wed May 19 15:07:14 2010 -0400 @@ -40,6 +40,7 @@ , registration const& converters) { rvalue_from_python_stage1_data data; + data.construct = 0; // First check to see if it's embedded in an extension class // instance, as a special case. diff -r 4b7e3d45ba4a vendor/boost/libs/python/src/object/class.cpp --- a/vendor/boost/libs/python/src/object/class.cpp Mon Nov 23 06:21:18 2009 +0000 +++ b/vendor/boost/libs/python/src/object/class.cpp Wed May 19 15:07:14 2010 -0400 @@ -5,6 +5,7 @@ #include #include // #including this first is an intel6 workaround +#include #include #include @@ -25,7 +26,12 @@ #include #include #include + +#ifdef BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK +# include +#else #include +#endif namespace boost { namespace python { diff -r 4b7e3d45ba4a vendor/boost/libs/python/src/object/enum.cpp --- a/vendor/boost/libs/python/src/object/enum.cpp Mon Nov 23 06:21:18 2009 +0000 +++ b/vendor/boost/libs/python/src/object/enum.cpp Wed May 19 15:07:14 2010 -0400 @@ -3,6 +3,7 @@ // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) +#include #include #include #include @@ -12,7 +13,12 @@ #include #include #include + +#if defined(BOOST_OSX_INCLUDE_PYTHON_AS_FRAMEWORK) +# include +#else #include +#endif namespace boost { namespace python { namespace objects {