using what recommended in official document: https://github.com/fnp/pylucene/blob/master/doc/documentation/readme.pdf
changed lots of environment variable but got this error in the end:
clang: error: invalid argument '-compatibility_version 2.12' only allowed with '-dynamiclib'
clang: error: invalid argument '-compatibility_version 2.12' only allowed with '-dynamiclib'
error: command '/usr/bin/clang++' failed with exit status 1