Andi Vajda <va...@apache.org> wrote: > Ah ok, I missed that. The import of config.py can be surrounded by > try/ > catch since SHARED is not needed during jcc build time. I'll add that > and simulate the execution path to find other such holes.
Here's one I don't see a good workaround for: if __name__ == '__main__': import jcc.__main__ else: from _jcc import initVM The import of "_jcc" will fail, too. How about we put the code to find JAVAHOME (which is really JDKHOME, I think) in file at the same level as setup.py? It's not needed for later execution. That way we can just import it, use the code, and proceed with setup.py. Bill