You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2022/01/13 21:36:58 UTC
svn commit: r1897015 - in /lucene/pylucene/trunk/jcc: helpers2/darwin.py jcc2/python.py
Author: vajda
Date: Thu Jan 13 21:36:57 2022
New Revision: 1897015
URL: http://svn.apache.org/viewvc?rev=1897015&view=rev
Log:
- fixed bug with not checking presence of compiled extension directory
Modified:
lucene/pylucene/trunk/jcc/helpers2/darwin.py
lucene/pylucene/trunk/jcc/jcc2/python.py
Modified: lucene/pylucene/trunk/jcc/helpers2/darwin.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/helpers2/darwin.py?rev=1897015&r1=1897014&r2=1897015&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/helpers2/darwin.py (original)
+++ lucene/pylucene/trunk/jcc/helpers2/darwin.py Thu Jan 13 21:36:57 2022
@@ -22,7 +22,7 @@ if sys.platform == "darwin":
_path = os.environ['JAVA_HOME']
if os.path.exists(os.path.join(_path, "include", "jni.h")):
JAVAHOME = _path
- print('found JAVAHOME =', JAVAHOME, file=sys.stderr)
+ print >>sys.stderr, 'found JAVAHOME =', JAVAHOME
if JAVAHOME is None:
# figure out where the JDK lives
Modified: lucene/pylucene/trunk/jcc/jcc2/python.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc2/python.py?rev=1897015&r1=1897014&r2=1897015&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc2/python.py (original)
+++ lucene/pylucene/trunk/jcc/jcc2/python.py Thu Jan 13 21:36:57 2022
@@ -1613,6 +1613,10 @@ def compile(env, jccPath, output, module
with_setuptools = False
extname = '_%s' %(moduleName)
+ if not os.path.isdir(os.path.join(output, extname)):
+ raise ValueError,
+ "%s directory not found, module %s needs to be compiled first" %(
+ os.path.join(output, extname), extname)
modulePath = os.path.join(output, moduleName)
if not os.path.isdir(modulePath):