From 42c29114076171131d82a59a09852b1a6637f922 Mon Sep 17 00:00:00 2001 From: Rudolph Bott Date: Mon, 12 Dec 2022 15:05:48 +0100 Subject: [PATCH] Switch to python3 in Makefile The Makefile calls the python interpreter with inline `print` statements. `python` is now `python3` and `print()` requires the use of parantheses. Signed-off-by: Rudolph Bott --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c7eab0a..65c7dc0 100644 --- a/Makefile +++ b/Makefile @@ -66,9 +66,9 @@ format: # Release process # --------------- GITVER := $(shell git describe --tags --always --dirty=-dev) -VERSION := $(shell python -c 'print "$(GITVER)"[1:].partition("-")[0]') -ITERATION := $(shell python -c 'print ("$(GITVER)"[1:].partition("-")[2] or "0")') -NEXT_VERSION := v0.$(shell python -c 'print int("$(GITVER)"[1:].partition("-")[0][2:]) + 1') +VERSION := $(shell python3 -c 'print("$(GITVER)"[1:].partition("-")[0])') +ITERATION := $(shell python3 -c 'print(("$(GITVER)"[1:].partition("-")[2] or "0"))') +NEXT_VERSION := v0.$(shell python3 -c 'print(int("$(GITVER)"[1:].partition("-")[0][2:]) + 1)') .PHONY: release