+1 for this release from a pylucene user. I managed to built & install PyLucene 
4.10.4-1 release with Java version "1.8.0_66"(build 1.8.0_66-b17) on 
macosx-10.10 (intel) with Python 2.7.10  - 'make test' runs fine.
For Mac users with installation issues here are some hints that may help: I did 
have some trouble with GCC: System Python 2.7 on Mac OSX 10.10 is build with 
GCC4.2, but building JCC with that version did fail with error
  <built-in>:0: error: Unknown value ‘10.10’ of -mmacosx-version-min
(Seems this issue is only fixed in GCC versions>4.3: 
https://trac.macports.org/ticket/43978#comment:75 
<https://trac.macports.org/ticket/43978#comment:75>)
After some attempts I finally installed a fresh ‚apple-ready' GCC4.2 version 
from Macports and re-build Python 2.7 from source via brew. That solved the 
build issues of JCC. Here's my recipe:

1) install macports via http://www.macports.org <http://www.macports.org/>
2) sudo port install apple-gcc42
3) sudo port select gcc apple-gcc42
Selecting 'apple-gcc42' for 'gcc' succeeded. 'apple-gcc42' is now active.
$ gcc --version
i686-apple-darwin14-gcc-apple-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) 
(MacPorts apple-gcc42 5666.3_15)

4) install homebrew via http://brew.sh <http://brew.sh/>
5) sudo brew install python --build-from-source
cf. http://docs.python-guide.org/en/latest/starting/install/osx 
<http://docs.python-guide.org/en/latest/starting/install/osx>
and 
https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md
 
<https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md>
Note: macports should change your PATH (in .bash_profile) so ggc is in 
/opt/local/bin/gcc

afterwards make sure the compiler settings are exposed - i.e.

export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
export ARCHFLAGS="-arch x86_64"
export CC=/opt/local/bin/gcc

Note sure if that's all needed, but it did help on my MacOSX-10.10 (Darwin 
Kernel Version 14.5.0) to build JCC (and finally pylucene-4.10.4-1).

regards,
Thomas

Reply via email to