From 3f6bad89975eaed7e2c179f4327ebef48157fe93 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 14:59:50 +0000 Subject: [PATCH 1/2] Initial plan From 45d0996d4afa1117c7c009ad4d3a8a2f8994ce97 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 15:04:20 +0000 Subject: [PATCH 2/2] Fix Windows wheel build: use PYBIND11_FINDPYTHON instead of deprecated PYBIND11_NEWPYTHON The free-threaded CPython 3.14 (cp314t) build on Windows fails with: LINK : fatal error LNK1104: cannot open file 'python314.lib' The root cause is that PYBIND11_NEWPYTHON is deprecated/unrecognized in pybind11 3.0.x, causing it to fall back to FindPythonLibsNew.cmake which doesn't properly handle the 't' suffix for free-threaded Python on Windows. PYBIND11_FINDPYTHON is the correct variable that tells pybind11 to use CMake's modern FindPython module, which correctly handles free-threaded Python library naming (python314t.lib vs python314.lib). Co-authored-by: dfm <350282+dfm@users.noreply.github.com> --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 80b6518..34eb239 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.15...3.26) project(${SKBUILD_PROJECT_NAME} LANGUAGES CXX) -set(PYBIND11_NEWPYTHON ON) +set(PYBIND11_FINDPYTHON ON) find_package(pybind11 CONFIG REQUIRED) include_directories(