FWIW, if it helps, I have a Python 3.14+ application I build with PyInstaller in 2 ways (one compressed with UPX). For Wine compatibility, I have to build the uncompressed version, as the UPX compressed one fails with:
0128:trace:module:MODULE_InitDLL (00006FFFFBDE0000 L"python314.dll",PROCESS_ATTACH,0000000000000000) - CALL
0128:trace:module:load_dll looking for L"KERNEL32.DLL" in L"Z:\\\\home\\\\avasam\\\\.var\\\\app\\\\com.usebottles.bottles\\\\data\\\\bottles\\\\bottles\\\\Application\\\\drive_c;C:\\\\users\\\\avasam\\\\AppData\\\\Local\\\\Temp\\\\\_MEI322;C:\\\\windows\\\\system32;C:\\\\windows\\\\system;C:\\\\windows;C:\\\\windows\\\\system32;C:\\\\windows;C:\\\\windows\\\\system32\\\\wbem;C:\\\\windows\\\\system32\\\\Win"...
0128:trace:module:load_dll Found L"C:\\\\windows\\\\system32\\\\kernel32.dll" for L"KERNEL32.DLL" at 00006FFFFFA20000, count=-1
0128:warn:module:LdrGetProcedureAddress "PssQuerySnapshot" (ordinal 0) not found in L"C:\\\\windows\\\\system32\\\\kernel32.dll"
0128:trace:module:MODULE_InitDLL (00006FFFFBDE0000,PROCESS_ATTACH,0000000000000000) - RETURN 0
0128:trace:module:MODULE_InitDLL (00006FFFFBDE0000 L"python314.dll",PROCESS_DETACH,0000000000000000) - CALL
0128:trace:module:MODULE_InitDLL (00006FFFFBDE0000,PROCESS_DETACH,0000000000000000) - RETURN 0
0128:warn:module:process_attach Initialization of L"python314.dll" failed
0128:trace:module:process_attach (L"python314.dll",0000000000000000) - END
Here the app (you can see the regular "win-x64", and the "win-x64-WineCompat" builds: https://github.com/Toufool/AutoSplit/releases/tag/v2.3.4 The non-UPX compressed version fully works and instead only shows this `PssQuerySnapshot` related warning in log
0128:warn:module:import_dll No implementation for KERNEL32.dll.PssQuerySnapshot imported from L"C:\\\\users\\\\avasam\\\\AppData\\\\Local\\\\Temp\\\\\_MEI322\\\\python314.dll", setting to 00007FFFFECD0000
Hopefully that helps you test without a steering wheel ! -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8779#note_144401