--- Python-3.8.0a3-orig/Python/dynload_shlib.c 2019-03-25 15:36:40.000000000 -0400 +++ Python-3.8.0a3/Python/dynload_shlib.c 2019-03-29 13:18:23.024414000 -0400 @@ -35,6 +35,8 @@ const char *_PyImport_DynLoadFiletab[] = { #ifdef __CYGWIN__ + "." SOABI ".dll", + ".abi" PYTHON_ABI_STRING ".dll", ".dll", #else /* !__CYGWIN__ */ "." SOABI ".so", --- Python-3.11.2/configure.ac.orig 2023-02-13 19:44:27.282349300 +0100 +++ Python-3.11.2/configure.ac 2023-02-13 20:30:23.784979600 +0100 @@ -1057,6 +1057,14 @@ darwin #elif defined(__VXWORKS__) vxworks +#elif defined(__CYGWIN__) +# if defined(__x86_64__) + x86_64-cygwin +# elif defined(__i386__) + i386-cygwin +# else +# error unknown platform triplet +# endif #elif defined(__wasm32__) # if defined(__EMSCRIPTEN__) wasm32-emscripten