Install via pip fails on pybind11 with cmake 4.0
Hi,
Just some feedback on installing via pip.
- I suggest installing it via https i.e.
pip install git+https://github.com/KomputeProject/kompute.git@master
- builtin pybind11 version doesn't compile with cmake 4.0
CMake Error at build/temp.linux-x86_64-cpython-313/_deps/pybind-src/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Btw I am using cachyos, what works is:
pacman -Sy pybind11
KOMPUTE_OPT_USE_BUILT_IN_PYBIND11=OFF pip install git+https://github.com/KomputeProject/kompute.git@master
This way the installation succeed, I have yet to actually test it though.
Can you share the version of pybind frmo your local system?
OK I got the example from the readme working with some modifications (I can PR those changes if you want?)
This is the pybind11 I installed:
pacman -Qs pybind11
local/pybind11 3.0.1-1
A lightweight header-only library that exposes C++ types in Python and vice versa
Maybe you can update to that?
Here is the modified python example that I got working: https://gist.github.com/asoderq/040e8948ab68dadf76e44f56cac9b880
Strange - yes let's update this, also we can test on the CI. Could you update this on the CMAKE on a PR? Otherwise let me know and I can kick it off
Just adding that I get precisely the same failure on a Mac Mini M4, Sequoia 15.6.1. I don't know of a workaround.