[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-user
Subject: Re: JCC build fails with Python>=3.8
From: David Allouche <david () allouche ! net>
Date: 2021-11-18 15:01:00
Message-ID: A190C510-9540-46F1-9A19-F473B1C8232A () allouche ! net
[Download RAW message or body]
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 <david@allouche.net> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic