From: Kefu Chai Date: Wed, 24 Dec 2025 08:57:12 +0000 (+0800) Subject: test/run-cli-tests: install wheel before cram to fix build failure X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F66733%2Fhead;p=ceph.git test/run-cli-tests: install wheel before cram to fix build failure Fix the run-cli-tests failure that occurs when installing cram from git. The error happens because the fresh venv lacks build dependencies, causing pip to fall back to legacy setup.py install which fails: Using legacy 'setup.py install' for cram, since package 'wheel' is not installed. Installing collected packages: cram Running setup.py install for cram: started error: subprocess-exited-with-error × Running setup.py install for cram did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Running setup.py install for cram: finished with status 'error' error: legacy-install-failure × Encountered error while trying to install package. ╰─> cram The issue became visible after commit 70880723eaa updated the pip URL format to the new PEP 440 style, which exposed the missing build tools. Solution: Upgrade pip, setuptools, and wheel before installing cram to ensure proper wheel-based installation works correctly with Python 3.13 and modern pip versions. Signed-off-by: Kefu Chai --- diff --git a/src/test/run-cli-tests b/src/test/run-cli-tests index 3a29f140319e..875ca7220c34 100755 --- a/src/test/run-cli-tests +++ b/src/test/run-cli-tests @@ -26,6 +26,7 @@ if [ ! -e "$CRAM_BIN" ]; then # https://bitbucket.org/brodie/cram/issue/9/allow-read-only-directories-for-t # -- tv@inktank.com python3 -m venv "$VENV" && $VENV/bin/pip --log "$VENV"/log.txt \ + install --upgrade pip setuptools wheel && $VENV/bin/pip --log "$VENV"/log.txt \ install 'cram@git+https://github.com/ceph/cram.git@0.7-error-dir' fi