Explicitly include dir
@@ -12,6 +12,8 @@ cmake ${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DBUILD_EXAMPLES=OFF \
-DBUILD_PYTHON=ON \
-DPython3_EXECUTABLE="$PYTHON"
+ -DPYTHON_INCLUDE_DIR=$(${PYTHON} -c 'import sysconfig; print(sysconfig.get_paths()["include"])') \
+ -DPYTHON_LIBRARY=${PREFIX}/lib \
cmake --build build -j${CPU_COUNT}
