Hi all, I'm new to the pylucene-dev list, so please forgive me if I'm stepping out of line in the voting process.
We're using sucesfully JCC 2.15 to generate a wrapper for our Java API. JCC 2.16 from SVN HEAD produces the following error (output log attached) when using the new --use_full_names option. Python 2.7, OS X 10.8: build/_ovation/com/__init__.cpp:15:14: error: use of undeclared identifier 'getJavaModule' module = getJavaModule(module, "", "com"); ^ build/_ovation/com/__init__.cpp:22:14: error: use of undeclared identifier 'getJavaModule' module = getJavaModule(module, "", "com"); ^ 2 errors generated. error: command 'clang' failed with exit status 1 The generated _ovation/__init__.cpp and _ovation/com/__init__.cpp are also attached. Cheers, Barry On Mon, May 6, 2013 at 8:27 PM, Andi Vajda <va...@apache.org> wrote: > > It looks like the time has finally come for a PyLucene 4.x release ! > > The PyLucene 4.3.0-1 release tracking the recent release of Apache Lucene > 4.3.0 is ready. > > A release candidate is available from: > http://people.apache.org/~**vajda/staging_area/<http://people.apache.org/~vajda/staging_area/> > > A list of changes in this release can be seen at: > http://svn.apache.org/repos/**asf/lucene/pylucene/branches/** > pylucene_4_3/CHANGES<http://svn.apache.org/repos/asf/lucene/pylucene/branches/pylucene_4_3/CHANGES> > > PyLucene 4.3.0 is built with JCC 2.16 included in these release artifacts: > http://svn.apache.org/repos/**asf/lucene/pylucene/trunk/jcc/**CHANGES<http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc/CHANGES> > > A list of Lucene Java changes can be seen at: > http://svn.apache.org/repos/**asf/lucene/dev/tags/lucene_** > solr_4_3_0/lucene/CHANGES.txt<http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_3_0/lucene/CHANGES.txt> > > Please vote to release these artifacts as PyLucene 4.3.0-1. > > Thanks ! > > Andi.. > > ps: the KEYS file for PyLucene release signing is at: > http://svn.apache.org/repos/**asf/lucene/pylucene/dist/KEYS<http://svn.apache.org/repos/asf/lucene/pylucene/dist/KEYS> > http://people.apache.org/~**vajda/staging_area/KEYS<http://people.apache.org/~vajda/staging_area/KEYS> > > pps: here is my +1 >
setup args = {'ext_modules': [<setuptools.extension.Extension instance at 0x10996b908>], 'name': 'ovation', 'package_data': {'ovation': ['joda-time-1.6.2.jar', 'cloud-file-cache-2.0-SNAPSHOT.jar', 'ovation-api-2.0-SNAPSHOT.jar', 'ovation-core-2.0-SNAPSHOT.jar', 'ovation-couch-2.0-SNAPSHOT.jar', 'ovation-logging-2.0-SNAPSHOT.jar', 'ovation-query-2.0-SNAPSHOT.jar', 'ovation-test-utils-2.0-SNAPSHOT.jar', 'aopalliance-1.0.jar', 'c3p0-0.9.1.2.jar', 'cal10n-api-0.7.4.jar', 'clj-time-0.4.4.jar', 'jackson-annotations-2.1.1.jar', 'jackson-core-2.1.2.jar', 'jackson-databind-2.1.2.jar', 'jackson-datatype-joda-2.1.2.jar', 'gson-2.2.jar', 'guava-13.0.1.jar', 'guice-3.0.jar', 'guice-assistedinject-3.0.jar', 'protobuf-java-2.4.1.jar', 'h2-1.3.170.jar', 'java-xmlbuilder-0.4.jar', 'je-4.0.92.jar', 'jconsole.jar', 'jconsole.jar', 'jna-3.0.9.jar', 'commons-codec-1.7.jar', 'commons-httpclient-3.1.jar', 'commons-io-2.4.jar', 'commons-lang-2.6.jar', 'commons-logging-1.1.1.jar', 'netcdf-4.3.16.jar', 'udunits-4.3.16.jar', 'jsr250-api-1.0.jar', 'javax.inject-1.jar', 'jsr311-api-1.1.1.jar', 'korma-0.3.0-RC5.jar', 'lobos-1.0.0-beta1.jar', 'log4j-1.2.17.jar', 'jcip-annotations-1.0.jar', 'ehcache-core-2.6.2.jar', 'rocoto-6.1.jar', 'commons-compress-1.0.jar', 'commons-exec-1.1.jar', 'httpclient-4.2.1.jar', 'httpclient-cache-4.1.2.jar', 'httpcore-4.2.1.jar', 'log4j-api-2.0-beta5.jar', 'log4j-core-2.0-beta5.jar', 'log4j-slf4j-impl-2.0-beta5.jar', 'bcprov-jdk16-1.46.jar', 'clojure-1.5.0.jar', 'java.jdbc-0.2.2.jar', 'tools.macro-0.1.1.jar', 'jackson-core-asl-1.9.7.jar', 'jackson-mapper-asl-1.9.7.jar', 'org.ektorp-1.3.0.jar', 'jclouds-allblobstore-1.5.7.jar', 'jclouds-blobstore-1.5.7.jar', 'jclouds-core-1.5.7.jar', 'atmos-1.5.7.jar', 'cloudfiles-1.5.7.jar', 'filesystem-1.5.7.jar', 'openstack-keystone-1.5.7.jar', 's3-1.5.7.jar', 'swift-1.5.7.jar', 'walrus-1.5.7.jar', 'aws-common-1.5.7.jar', 'azure-common-1.5.7.jar', 'openstack-common-1.5.7.jar', 'aws-s3-1.5.7.jar', 'azureblob-1.5.7.jar', 'cloudfiles-uk-1.5.7.jar', 'cloudfiles-us-1.5.7.jar', 'cloudonestorage-1.5.7.jar', 'eucalyptus-partnercloud-s3-1.5.7.jar', 'hpcloud-objectstorage-1.5.7.jar', 'ninefold-storage-1.5.7.jar', 'synaptic-storage-1.5.7.jar', 'jdom-1.1.jar', 'quartz-2.1.1.jar', 'jcl-over-slf4j-1.6.4.jar', 'slf4j-api-1.7.5.jar', 'slf4j-ext-1.7.2.jar', 'osx-keychain-java-1.0.jar']}, 'version': '2.0-SNAPSHOT', 'zip_safe': False, 'script_args': ['build_ext', 'bdist_egg'], 'packages': ['ovation'], 'package_dir': {'ovation': 'build/ovation'}} running build_ext building 'ovation._ovation' extension clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/__init__.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/__init__.o -fno-strict-aliasing -Wno-write-strings clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/functions.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/functions.o -fno-strict-aliasing -Wno-write-strings clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/JArray.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/JArray.o -fno-strict-aliasing -Wno-write-strings clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/jcc.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/jcc.o -fno-strict-aliasing -Wno-write-strings clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/JCCEnv.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/JCCEnv.o -fno-strict-aliasing -Wno-write-strings clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/JObject.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/JObject.o -fno-strict-aliasing -Wno-write-strings clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/ovation.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/ovation.o -fno-strict-aliasing -Wno-write-strings clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/types.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/types.o -fno-strict-aliasing -Wno-write-strings clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DPYTHON -DJCC_VER="2.16" -D_java_generics -I/System/Library/Frameworks/JavaVM.framework/Headers -Ibuild/_ovation -I/Users/barry/development/.virtualenvs/jcc/lib/python2.7/site-packages/JCC-2.16-py2.7-macosx-10.8-intel.egg/jcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/_ovation/com/__init__.cpp -o build/temp.macosx-10.8-x86_64-2.7/build/_ovation/com/__init__.o -fno-strict-aliasing -Wno-write-strings
#include <jni.h> #include <Python.h> #include "JCCEnv.h" #include "functions.h" PyObject *initVM(PyObject *module, PyObject *args, PyObject *kwds); PyObject *getJavaModule(PyObject *module, const char *parent, const char *name); namespace com { void __install__(PyObject *module); void __initialize__(PyObject *module); } namespace java { void __install__(PyObject *module); void __initialize__(PyObject *module); } namespace org { void __install__(PyObject *module); void __initialize__(PyObject *module); } namespace us { void __install__(PyObject *module); void __initialize__(PyObject *module); } void __install__(PyObject *module) { com::__install__(module); java::__install__(module); org::__install__(module); us::__install__(module); } PyObject *__initialize__(PyObject *module, PyObject *args, PyObject *kwds) { PyObject *env = initVM(module, args, kwds); if (env == NULL) return NULL; try { com::__initialize__(module); java::__initialize__(module); org::__initialize__(module); us::__initialize__(module); return env; } catch (int e) { switch(e) { case _EXC_JAVA: return PyErr_SetJavaError(); default: throw; } } }
#include <jni.h> #include <Python.h> #include "JCCEnv.h" #include "functions.h" namespace com { namespace google { void __install__(PyObject *module); void __initialize__(PyObject *module); } void __install__(PyObject *module) { module = getJavaModule(module, "", "com"); google::__install__(module); } void __initialize__(PyObject *module) { module = getJavaModule(module, "", "com"); google::__initialize__(module); } }