Hi Andi,

On Apr 8, 2006, at 11:18 AM, Andi Vajda wrote:


Python is normally installed as a framework on OS X, but it is still Python 2.3.5. A PyLucene user recently said that PyLucene works well with Python 2.3.5 since the threading bug preventing Python 2.3 support with PyLucene is included in Python 2.3.5.

So here are various options:
  - compile and link against the installed Python 2.3.5 framework
- use the Linux sections in the PyLucene Makefile as an example to figure
    out a Mac OS X framework-less configuration
- create a configure script for PyLucene that would support all options
    under the sun and then some (!)

What about editing the Makefile so that the default python is just "python" (i.e. whichever's on the path), and then you can get the prefix by doing this:

PYTHON=python
PREFIX_PYTHON=`$(PYTHON) -c "import sys; print sys.prefix" `

The only other change I think you'd need to make would be to change the logic for the $(PYLUCENE_LIB) target so that the "Darwin" case only runs if PREFIX_FRAMEWORKS is part of PREFIX_PYTHON. (Probably could use a sub-string comparison...) I don't have Fink installed either, but this should work correctly anywhere, and IMHO it's always better to automatically get the value when possible. :-)

I do not have fink installed on my powerbook. Given the system pollution rumors swirling around fink, I chose to install darwinports instead. I should be providing a Mac OS X python-darwinports section in PyLucene's Makefile soon.

Just as a data point, I had problems when Fink was installed in the past. ;-/ I tend to use darwinports if I do use one of those systems. (But I usually just install from source; it's well supported and you don't have to worry about the package/port doing something goofy because the maintainer threw some hacks in, etc.)

Thanks,

Kevin

Andi..

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev


_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to