You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
py_extension on Windows passes both CPython import libraries as one linker argument #4426
On Windows, py_extension fails to link when the Python toolchain's libpython holds both import libraries, which is the case for the hermetic interpreters from python.toolchain (python3.lib and python312.lib).
bazel build //:ext fails at the link step as above. main and 2.5.0-rc0 have the same code.
Proposed fix
Link one import library: the stable ABI one (python3.lib, python3t.lib) when py_limited_api is set, else the versioned one. Pass py_limited_api from the macro to py_extension_libs and filter there:
Activity
TrapsterDK commentedon Nov 7, 2026
PR: #4427
Assisted by Claude.