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:29:42 UTC

svn commit: r1897014 - in /lucene/pylucene/trunk/jcc: CHANGES jcc3/python.py

Author: vajda
Date: Thu Jan 13 21:29:42 2022
New Revision: 1897014

URL: http://svn.apache.org/viewvc?rev=1897014&view=rev
Log:
 - fixed bug with not checking presence of compiled extension directory

Modified:
    lucene/pylucene/trunk/jcc/CHANGES
    lucene/pylucene/trunk/jcc/jcc3/python.py

Modified: lucene/pylucene/trunk/jcc/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/CHANGES?rev=1897014&r1=1897013&r2=1897014&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/CHANGES (original)
+++ lucene/pylucene/trunk/jcc/CHANGES Thu Jan 13 21:29:42 2022
@@ -1,3 +1,8 @@
+Version 3.11 ->
+---------------------
+ - fixed bug with not checking presence of compiled extension directory
+ - 
+
 Version 3.10 -> 3.11
 ---------------------
  - added support for building with native JDK 17 on Apple M1

Modified: lucene/pylucene/trunk/jcc/jcc3/python.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc3/python.py?rev=1897014&r1=1897013&r2=1897014&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc3/python.py (original)
+++ lucene/pylucene/trunk/jcc/jcc3/python.py Thu Jan 13 21:29:42 2022
@@ -1607,7 +1607,11 @@ def compile(env, jccPath, output, module
         with_setuptools = False
 
     extname = '_%s' %(moduleName)
-
+    if not os.path.isdir(os.path.join(output, extname)):
+        raise FileNotFoundError(
+            "%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):
         os.makedirs(modulePath)