From 7fbfc985ab7e665833bf2fdafb295b1455ae8b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Thu, 29 Jul 2021 20:39:35 +0200 Subject: [PATCH] makefile: simplify how we build PYTHON_VERSION (#194) makefile: simplify how we build PYTHON_VERSION Reviewed-by: Mike Graves Reviewed-by: None --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a070adb3..e4330983 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VERSION = 2.1.1 TEST_ARGS ?= "" -PYTHON_VERSION ?= `python -c 'import platform; print("{0}.{1}".format(platform.python_version_tuple()[0], platform.python_version_tuple()[1]))'` +PYTHON_VERSION ?= `python -c 'import platform; print(".".join(platform.python_version_tuple()[0:2]))'` clean: rm -f kubernetes-core-${VERSION}.tar.gz