With the recent release of Java Lucene 2.9.0, a PyLucene 2.9.0 release is in
the works. I just completed the first rev of this and checked it into svn
trunk. So far, I've only tested it on Mac OS X 10.6 with 64-bit Python.
All unit tests pass as run with 'make test'.
If you're on a different platform and have some spare cycles, I'd be curious
to see if all unit tests pass on your platform.
The move to Java Lucene 2.9.0 was not as trivial as with previous releases.
Some unit tests, such as the large TestSort.java, had to be ported to Python
again from scratch.
Several bugs or missing features had to be fixed or added to JCC:
- byte values are now returned as signed numbers as opposed to one-char strs
- added --arch command line flag to override Mac OS X python config settings
- cast_() and instance_() methods now generated on extension classes as well
- fixed bug with reporting Python error that occurred in an extension class
Likewise in PyLucene:
- added Mac OS X 10.6 section to Makefile
- added FieldCache.Parser Python extension classes
- added FieldComparator and FieldComparatorSource Python extension classes
The new Mac OS X 10.6 section of the Makefile makes use of the new --arch
JCC command line parameter that makes it possible to override the -arch
settings Python was configured with. Even though Mac OS X 10.6 is only
available on Intel platforms, the Mac OS X 10.6 Python shipped by Apple was
configured with three architectures, -arch i386 -arch x86_64 -arch ppc,
making for compiles that are three times slower than needed and binaries
that are three times bigger. On Mac OS X 10.6 the PyLucene Makefile invokes
JCC with --arch x86_64 to build 64-bit executables only.
Andi..