Skip to content

Commit

Permalink
Embedded Python: add name for python 3.13 shared object
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Sep 8, 2024
1 parent 4ca4d62 commit e4fa8f4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gcore/gdalpython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ static bool LoadPythonAPI()
const char *const apszPythonSO[] = {
"libpython3.8." SO_EXT, "libpython3.9." SO_EXT,
"libpython3.10." SO_EXT, "libpython3.11." SO_EXT,
"libpython3.12." SO_EXT, "libpython3.7m." SO_EXT,
"libpython3.6m." SO_EXT, "libpython3.5m." SO_EXT,
"libpython3.4m." SO_EXT, "libpython3.3." SO_EXT,
"libpython3.2." SO_EXT};
"libpython3.12." SO_EXT, "libpython3.13." SO_EXT,
"libpython3.7m." SO_EXT, "libpython3.6m." SO_EXT,
"libpython3.5m." SO_EXT, "libpython3.4m." SO_EXT,
"libpython3.3." SO_EXT, "libpython3.2." SO_EXT};
for (size_t i = 0;
libHandle == nullptr && i < CPL_ARRAYSIZE(apszPythonSO); ++i)
{
Expand Down Expand Up @@ -623,9 +623,9 @@ static bool LoadPythonAPI()
if (libHandle == nullptr)
{
const char *const apszPythonSO[] = {
"python38.dll", "python39.dll", "python310.dll", "python311.dll",
"python312.dll", "python37.dll", "python36.dll", "python35.dll",
"python34.dll", "python33.dll", "python32.dll"};
"python38.dll", "python39.dll", "python310.dll", "python311.dll",
"python312.dll", "python313.dll", "python37.dll", "python36.dll",
"python35.dll", "python34.dll", "python33.dll", "python32.dll"};
UINT uOldErrorMode;
uOldErrorMode =
SetErrorMode(SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS);
Expand Down

0 comments on commit e4fa8f4

Please sign in to comment.