[Pyobjc-dev] PyObjC trunk fails to build under python-2.6.1 (4-way universal)
Brought to you by:
ronaldoussoren
|
From: James R E. <Jam...@lr...> - 2009-04-16 14:00:15
|
I suspect I'm on the bleeding edge here, so please bear with me.
I'm attempting to build PyObjC (from SVN trunk) using a 4-way
universal build of Python 2.6.1. It appears that PyObjC does not like
to be built from a newer Python than 2.5, since the 02-develop-all.sh
script specifically invokes python-2.5. When building using
python-2.6, some #ifdef'd code causes the build to fail.
Applying the patch below causes the build to succeed, but still yields
an unusable PyObjC. When run under 32 bit (via python-32), an "import
Foundation" yields "ImportError: No module named _nsindexset". Is
pyobjc-frameworks-Cocoa/Modules/_Foundation_nsindexset.m missing from
the repo?
Furthermore, and possibly a result of the previous error, when running
via python-64, "import Foundation" causes a segmentation fault.
Is the file I mentioned missing from the repository? Should I be
using a different version of Python (e.g. 2.5.4) instead?
Cheers!
James
Index: pyobjc-core/Modules/objc/objc_util.m
===================================================================
--- pyobjc-core/Modules/objc/objc_util.m (revision 2164)
+++ pyobjc-core/Modules/objc/objc_util.m (working copy)
@@ -764,7 +764,7 @@
/* A more complex array */
#if PY_VERSION_HEX >= 0x02060000
- if (PyObject_CheckBuffer(obj)) {
+ if (PyObject_CheckBuffer(*bufobj)) {
/* An object that implements the new-style buffer interface.
* Use the buffer interface description to check if the buffer
* type is compatible with what we expect.
|