Here, the patch I needed to compile pylucene with Python>=3.8
It cannot be merged as is, because additional works is required to preserve
compatibility with Python<3.8.
--- jcc/setup.py
+++ jcc/setup.py
@@ -365,8 +365,7 @@
'-compatibility_version', jcc_ver]
elif platform == 'linux':
kwds["extra_link_args"] = \
- lflags + ['-lpython%s.%s%s' %(
- sys.version_info[0:2] + ('' if using_python2 else 'm',))]
+ lflags + ['-lpython%s.%s' % (sys.version_info[0:2])]
kwds["force_shared"] = True # requires jcc/patches/patch.43
elif platform in IMPLIB_LFLAGS:
jcclib = 'jcc%s%s.lib' %(py_version_suffix, debug and '_d' or '')
> On 18 Nov 2021, at 11:04, David Allouche <[email protected]> wrote:
>
> Hello,
>
> https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-52
>
> Currently porting a code base to Python3, I have found about this issue.
>
> If I understand correctly, that means that pylucene cannot be built on Python
> 3.8, 3.9, 3.10.
>
> I will try to find the place to patch in JCC, if only to unblock my work.
>
> Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]