public inbox for [email protected]
help / color / mirror / Atom feedFrom: Peter Eisentraut <[email protected]>
To: pgsql-hackers <[email protected]>
Cc: Jakob Egger <[email protected]>
Subject: Re: Use Python "Limited API" in PL/Python
Date: Mon, 3 Mar 2025 11:17:48 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
On 15.01.25 23:20, Peter Eisentraut wrote:
> On 15.01.25 12:28, Jakob Egger wrote:
>> On 14.01.2025, at 16:51, Jakob Egger <[email protected]> wrote:
>>> I've tried to create a patch with this change. I'm attaching it to
>>> this message so that cfbot picks it up. (I was unable to reproduce
>>> the issue locally)
>>
>> Apologies, please disregard my last patch. It does not work.
>>
>> It looks like meson just can't build libraries that link with Python
>> that use the limited API.
>>
>> My understanding of Meson is limited, so I am unsure how to best work
>> around this limitation.
>>
>> I've spent two days trying to figure it out; I'm at the end of my wits.
>
> Thanks for checking. I've also been poking at this, without success.
>
> What we could do is just not activate the limited API on Windows
> (actually MSVC, since it works on MinGW). If someone later finds a way
> to make it work on Windows/MSVC, then it's easy to change.
>
> So here is an updated patch set with that change. It should pass cfbot
> like this.
Update for the hackers list: This patch set was briefly committed but
had to be reverted because it crashed on some older Python versions; see
[0].
I have locally reproduced the problem with Python 3.6 and 3.7; Python
3.8 is ok. This matches the results from the buildfarm.
I have poked at this a bit more but haven't gotten a good idea where or
how to fix it so far. Help welcome.
[0]:
https://www.postgresql.org/message-id/flat/E1tnJNu-000CZW-0X%40gemulon.postgresql.org
view thread (14+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Use Python "Limited API" in PL/Python
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox