[pypy-svn] r75067 - in pypy/trunk/pypy/module/cpyext: include patches
afa at codespeak.net
afa at codespeak.net
Thu Jun 3 19:47:41 CEST 2010
Author: afa
Date: Thu Jun 3 19:47:40 2010
New Revision: 75067
Modified:
pypy/trunk/pypy/module/cpyext/include/Python.h
pypy/trunk/pypy/module/cpyext/patches/boost.patch
Log:
Update patch for Boost.Python,
one less hack if we define the (deprecated!) DL_IMPORT macro
Modified: pypy/trunk/pypy/module/cpyext/include/Python.h
==============================================================================
--- pypy/trunk/pypy/module/cpyext/include/Python.h (original)
+++ pypy/trunk/pypy/module/cpyext/include/Python.h Thu Jun 3 19:47:40 2010
@@ -27,6 +27,7 @@
# endif
# define Py_LOCAL_INLINE(type) static __inline type __fastcall
#endif
+#define DL_IMPORT(RTYPE) PyAPI_FUNC(RTYPE)
#include <stdlib.h>
Modified: pypy/trunk/pypy/module/cpyext/patches/boost.patch
==============================================================================
--- pypy/trunk/pypy/module/cpyext/patches/boost.patch (original)
+++ pypy/trunk/pypy/module/cpyext/patches/boost.patch Thu Jun 3 19:47:40 2010
@@ -1,16 +1,3 @@
-Index: libs/python/src/object/class.cpp
-===================================================================
---- libs/python/src/object/class.cpp 2009-11-13 01:40:01 +0100
-+++ libs/python/src/object/class.cpp 2010-06-02 23:25:08 +0200
-@@ -195,7 +195,7 @@
-
- namespace objects
- {
--#if PY_VERSION_HEX < 0x03000000
-+#if PY_VERSION_HEX < 0x03000000 && !defined(PYPY_VERSION)
- // XXX Not sure why this run into compiling error in Python 3
- extern "C"
- {
Index: libs/python/src/object/function.cpp
===================================================================
--- libs/python/src/object/function.cpp 2010-04-04 07:19:57 +0200
@@ -50,14 +37,21 @@
===================================================================
--- tools/build/v2/user-config.jam 2008-07-15 15:53:41 +0200
+++ tools/build/v2/user-config.jam 2010-06-02 23:46:13 +0200
-@@ -84,3 +84,9 @@
+@@ -84,3 +84,16 @@
# Configure with an explicit installation prefix.
# using qt : /usr/opt/qt ;
+
++# -------------------
++# PyPy configuration.
++# -------------------
++
++PYPY_HOME = /home/amaury/trunk ;
++
+using python : 2.5
-+ : /home/amaury/trunk/pypy/pypy-c
-+ : /home/amaury/trunk/pypy/module/cpyext/include
-+ /home/amaury/trunk/pypy/_interfaces
++ : $(PYPY_HOME)/pypy/pypy-c # interpreter
++ : $(PYPY_HOME)/pypy/module/cpyext/include # include paths
++ $(PYPY_HOME)/pypy/_interfaces
++ : $(PYPY_HOME)/pypy/_interfaces # library path
+ ;
More information about the Pypy-commit
mailing list