File tree Expand file tree Collapse file tree
benchmarks/single_node/agentic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,8 +235,16 @@ case "$OFFLOAD_MODE" in
235235 cd ..
236236 # Produces a self-contained wheel under mooncake-wheel/dist/.
237237 bash scripts/build_wheel.sh " $MOONCAKE_PYVER "
238- pip install --force-reinstall mooncake-wheel/dist/* .whl )
238+ pip install --force-reinstall mooncake-wheel/dist/* .whl
239+
240+ # CMake installs the Python package into the user site, which
241+ # shadows the wheel installed by pip. Ensure the CLI wrapper can
242+ # find the native master binary in the package it imports.
243+ MOONCAKE_PACKAGE_DIR=$( python3 -c ' import pathlib, mooncake; print(pathlib.Path(mooncake.__file__).parent)' )
244+ install -m 0755 build/mooncake-store/src/mooncake_master \
245+ " $MOONCAKE_PACKAGE_DIR /mooncake_master" )
239246 python3 -c " from mooncake.store import MooncakeDistributedStore" > /dev/null
247+ test -x " $( python3 -c ' import pathlib, mooncake; print(pathlib.Path(mooncake.__file__).parent / "mooncake_master")' ) "
240248 fi
241249
242250 MOONCAKE_MASTER_PORT=$(( PORT + 12000 ))
You can’t perform that action at this time.
0 commit comments