diff --git a/deps/cpython.BUILD.bazel b/deps/cpython.BUILD.bazel index ca535dcdf58018..4b02cde422ccfc 100644 --- a/deps/cpython.BUILD.bazel +++ b/deps/cpython.BUILD.bazel @@ -65,6 +65,7 @@ run_binary( "libffi_win_dir", "openssl-bin_win_dir", "tcltk_win_dir", + "@python_3_12//:python3", "@visual_studio//:msbuild", ] ), @@ -84,6 +85,7 @@ run_binary( "TCLTK_DIR": r"$(location tcltk_win_dir)\amd64", "TCL_VERSION": python_externals["tcltk"], "MSBUILD": "$(location @visual_studio//:msbuild)", + "PYTHON_FOR_BUILD": "$(location @python_3_12//:python3)", }, outs = [ "build/{}".format(file) diff --git a/deps/cpython/build_python.bat b/deps/cpython/build_python.bat index da10f8722e43da..9aa52a28eb2848 100644 --- a/deps/cpython/build_python.bat +++ b/deps/cpython/build_python.bat @@ -3,6 +3,7 @@ for %%F in (%SRCFILE%) do set sourcedir=%%~dpF :: Make sure input paths are proper Windows paths as needed for %%F in (%OUTDIR%) do set destdir=%%~fF\\ for %%F in (%MSBUILD%) do set MSBUILD=%%~fF +for %%F in (%PYTHON_FOR_BUILD%) do set PYTHON_FOR_BUILD=%%~fF set build_outdir=%sourcedir%\PCbuild\amd64