pixi
pixi copied to clipboard
Nanobind example doesnt work for different python version than 3.12.* on windows
When running the pixi-build-workspace example we now explicitly use 3.12.* for python. Changing this to any other python version breaks the installation of the package with:
CMake Error at %BUILD_PREFIX%/Library/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
│ │ Could NOT find Python (missing: Development Development.Module
│ │ Development.Embed) (found suitable version "3.13.1", minimum required is
│ │ "3.8")
It doesn't work on linux either. I get:
Error:
× failed to extract metadata for 'python_bindings'
├─▶ failed to communicate with the build backend (pixi-build-cmake)
├─▶ ErrorObject { code: InvalidParams, message: "Invalid params: unknown variant
│ `0.1.0`, expected `1`.", data: None }
╰─▶ ErrorObject { code: InvalidParams, message: "Invalid params: unknown variant
`0.1.0`, expected `1`.", data: None }
That looks like this problem @jc211 - solution in the comments: https://github.com/prefix-dev/pixi/issues/2942
I can no longer reproduce this either on Windows or on Linux (WSL). I assume this was fixed upstream. Closing.