[pylucene-dev] poll: threading support ?
Andi Vajda
vajda at osafoundation.org
Sun Jan 16 17:23:14 PST 2005
> Yes, they certainly will but 10.3 will remain stuck in the past. My main
> concern was that nobody will able to ship a product using PyLucene on 10.3.
> But requiring the latest version of OS X is pretty standard and Tiger will be
> out in a few months.
Python 2.4 is required for 2 things:
- PyLucene threading support
- wrapped python object release during java object finalization
These are the two cases where PyGILState_Ensure() and is used. In python 2.3,
this function and its counterpart are available, so it should be possible to
build a PyLucene on python 2.3 using them. There are two files that have
conditional python 2.4 code: PyLucene.i and cpp/PythonUtil.cpp. You can
remove the #if statements there and see how far you get with regard to
deadlocks...
This is the Python 2.3 bug I was referring to in my previous message:
http://mail.python.org/pipermail/patches/2004-September/015926.html
Andi..
>
>> Also, building python 2.4 for Mac OS X is quite simple:
>> - download the sources from www.python.org
>> - ./configure --enable-framework
>> - make
>> - sudo make frameworkinstall
>> The problem with versions <= 2.3 is that the PyGILState_Ensure() can
>> deadlock.
>> That bug was fixed in September 2004, I believe.
>
> I've never had good luck running custom Python installations alongside the
> built in Python framework. Those options explain why, I think. Thanks!
>
> -steve
>
>
More information about the pylucene-dev
mailing list