summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPeter Maydell2022-08-25 17:06:57 +0200
committerPeter Maydell2022-09-22 17:38:29 +0200
commit342cf3041394916c9e6d6f23c27f62093a97a834 (patch)
tree23fd97ae31d499925d746dde0aeb98e5d03a96d5 /configure
parenttests/unit/test-vmstate: Avoid dynamic stack allocation (diff)
downloadqemu-342cf3041394916c9e6d6f23c27f62093a97a834.tar.gz
qemu-342cf3041394916c9e6d6f23c27f62093a97a834.tar.xz
qemu-342cf3041394916c9e6d6f23c27f62093a97a834.zip
configure: Remove unused python_version variable
Shellcheck correctly reports that we set python_version and never use it. This is a leftover from commit f9332757898a7: we used to use python_version purely to as part of the summary information printed at the end of a configure run, and that commit changed to printing the information from meson (which looks up the python version itself). Remove the unused variable. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20220825150703.4074125-2-peter.maydell@linaro.org
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 0 insertions, 3 deletions
diff --git a/configure b/configure
index 0bbf9d28af..b5ace4cb49 100755
--- a/configure
+++ b/configure
@@ -1112,9 +1112,6 @@ if ! $python -c 'import sys; sys.exit(sys.version_info < (3,6))'; then
"Use --python=/path/to/python to specify a supported Python."
fi
-# Preserve python version since some functionality is dependent on it
-python_version=$($python -c 'import sys; print("%d.%d.%d" % (sys.version_info[0], sys.version_info[1], sys.version_info[2]))' 2>/dev/null)
-
# Suppress writing compiled files
python="$python -B"