21230: Clean up venv diagnostic output
authorBrett Smith <brett.smith@curii.com>
Thu, 8 Feb 2024 17:05:44 +0000 (12:05 -0500)
committerBrett Smith <brett.smith@curii.com>
Thu, 8 Feb 2024 17:06:46 +0000 (12:06 -0500)
This output stopped making sense in the transition from using virtualenv
to the venv module. The module doesn't really have a version separate
from Python, so just report a boolean result. Refs #21230.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

build/run-tests.sh

index 70437bd21cdff07da8f279a3999b8f58bb0fb3ac..bd13bb22d972ec677449bea041c298ced0afa3d1 100755 (executable)
@@ -208,7 +208,8 @@ sanity_checks() {
     find /usr/include -path '*gnutls/gnutls.h' | egrep --max-count=1 . \
         || fatal "No gnutls/gnutls.h. Try: apt-get install libgnutls28-dev"
     echo -n 'virtualenv: '
-    python3 -m venv -h | egrep --max-count=1 . \
+    python3 -m venv --help | grep -q '^usage: venv ' \
+        && echo "venv module found" \
         || fatal "No virtualenv. Try: apt-get install python3-venv"
     echo -n 'Python3 pyconfig.h: '
     find /usr/include -path '*/python3*/pyconfig.h' | egrep --max-count=1 . \