List Info

Thread: PyLucene 2.0 and issues building on Mac OS X 10.4.6 with system Python




PyLucene 2.0 and issues building on Mac OS X 10.4.6 with system Python
user name
2006-05-29 15:55:52
Almost works, but there are a few 2.4-isms which crept into
your code:

1.  There's no Py_RETURN_NONE, Py_RETURN_TRUE, or
Py_RETURN_FALSE.  I
    added them to macros.h, and then had to add *that* to a
number of
    other include files; perhaps there's a better way?

2.  There's no PyTuple_Pack (used in one place in
java.cpp); switch to

    /*
    PyObject *args = PyTuple_Pack(2, name, str);
    */
    PyObject *args = PyTuple_New(2);
    PyTuple_SetItem(args, 0, name);
    PyTuple_SetItem(args, 1, str);

3.  "ld" complains about
"-lSystemStubs" on the link line.  Something in
    this Makefile macro needs re-consideration:

    ifeq ($(OS),Darwin)
    ifneq (,$(findstring 10.3,$(shell sw_vers
-productVersion)))
    STUBS=
    else
    STUBS=-lSystemStubs
    endif

All of this is with the gcc-3.4.4 binaries you helpfully
pointed me to
on the osafoundation.org site.

Anyway, with those changes, I seem to have it working with
the system
Python 2.3.5.  Thanks for the help!

Bill
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )