On Sat, 20 Mar 2010, Bill Janssen wrote:

Here's my latest patch against the SVN trunk.  It allows you to say
"--auto-find-jvm-dll" when building JCC:

 python setup.py build --auto-find-jvm-dll install

and puts that setting in the jcc/config.py file.  Later, if it's set,
when "jcc" is imported, it looks up the JVM location in the registry and
puts it at the end of "Path".  The default is off.

It also correctly builds the jcc.lib file with mingw, and I added a
section to the lucene Makefile for "make wininst", as well as
configuration section in the Makefile for using mingw32.  I've tried it
with Java 6 on mingw32, and Java 5 on OS X Leopard.

 Hi Bill,

I integrated your changes:
  - the mingw32 compiler trick is in helpers/mingw32.py
  - the JAVAHOME trick is in helpers/windows.py
  - the --find-jvm-dll trick is in jcc/windows.py and is not a JCC build
    option but a JCC run option. In other words, if you want the feature
    for your extension, when it starts, invoke jcc with, among many other
    things, --find-jvm-dll when you build your extension. This feature only
    works with shared mode, currently.

I tested the registry tricks on my windows setup and they seem to work.
I also moved the linux setuptools patching tricks into helpers/linux.py and verified that they still worked.

I did not test the mingw32 compiler stuff as I don't have it.
Please check it out and let me know how it works for you.

Thanks !

Andi..

Reply via email to