Skip to content

Commit c32a599

Browse files
Fix GPU wheel build - use bundled pybind11
The pixi environment's pybind11 uses pybind11NewTools which requires python_add_library from CMake's FindPython Development.Module component. However, pixi's Python only provides the Interpreter component, causing 'Unknown CMake command python_add_library' error. Solution: Use bundled pybind11 (MOMENTUM_USE_SYSTEM_PYBIND11=OFF) for GPU Linux builds, which handles Python interface setup internally.
1 parent e71bd51 commit c32a599

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject-pypi.toml.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ cmake.args = [
151151
"-DMOMENTUM_ENABLE_SIMD=OFF",
152152
"-DCMAKE_CXX_SCAN_FOR_MODULES=OFF",
153153
"-DMOMENTUM_USE_SYSTEM_RERUN_CPP_SDK=OFF",
154-
"-DMOMENTUM_USE_SYSTEM_PYBIND11=ON",
154+
# Use bundled pybind11 to avoid CMake FindPython Development.Module requirement
155+
# The pixi environment's pybind11 uses pybind11NewTools which requires python_add_library
156+
# from CMake's FindPython, but pixi's Python only has Interpreter component
157+
"-DMOMENTUM_USE_SYSTEM_PYBIND11=OFF",
155158
]
156159
{% endif %}
157160

0 commit comments

Comments
 (0)