Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0793ab8

Browse files
committed
Activate Python "Limited API" in PL/Python
This allows building PL/Python against any Python 3.x version andusing another Python 3.x version at run time. This is useful forinstallers that want to run against a separately downloaded Python, sothat they don't have to bundle it themselves.This builds on the earlier patch to only use APIs supported by theLimited API.At the moment, this is not activated on MSVC because that leads tobuild failures that no one could explain or cared enough to address.This could be done later.Reviewed-by: Jakob Egger <jakob@eggerapps.at>Discussion:https://www.postgresql.org/message-id/flat/ee410de1-1e0b-4770-b125-eeefd4726a24@eisentraut.org
1 parent05cbd6c commit0793ab8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎src/pl/plpython/plpython.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
#error Python.h must be included via plpython.h
2020
#endif
2121

22+
/*
23+
* Enable Python Limited API
24+
*
25+
* XXX currently not enabled on MSVC because of build failures
26+
*/
27+
#if !defined(_MSC_VER)
28+
#definePy_LIMITED_API 0x03020000
29+
#endif
30+
2231
/*
2332
* Pull in Python headers via a wrapper header, to control the scope of
2433
* the system_header pragma therein.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp