Re: Use Python "Limited API" in PL/Python - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Use Python "Limited API" in PL/Python
Date
Msg-id 59099123-c375-4a1c-bd24-83ff2bac31a2@eisentraut.org
Whole thread Raw
In response to Re: Use Python "Limited API" in PL/Python  (Bryan Green <dbryan.green@gmail.com>)
List pgsql-hackers
On 02.01.26 18:40, Bryan Green wrote:
> I have a patch that works around this by manually constructing the
> Python dependency on MSVC to use python3.lib instead of python3XX.lib,
> using cc.find_library('python3') and building the dependency with the
> appropriate include directory.  It passes CI when I push.  I'll see what
> cfbot thinks.
> 
> Still testing, but wanted to share progress and get feedback on the
> approach.

This approach seems fine to me.  I suppose one question would be whether 
it would be worth using that same approach on all platforms rather than 
just on windows/msvc.  That way we only have one code path to maintain. 
But I'm not sure how easy that would be to achieve.




pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Parallel Apply
Next
From: Peter Eisentraut
Date:
Subject: Re: Use Python "Limited API" in PL/Python