From c8645ca3caaf5f0d67dcb0cb55eb4ac732a77eb0 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 24 Dec 2025 16:57:12 +0800 Subject: [PATCH] test/run-cli-tests: install wheel before cram to fix build failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/test/run-cli-tests | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.3