From 98f843df0eb4db254bdcfcd86509c1c8f86d8432 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Mon, 17 Sep 2018 14:45:08 +0200 Subject: [PATCH] Fix versioning with tags starting with v --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ffd2f2ca..e18c45604 100644 --- a/Makefile +++ b/Makefile @@ -162,7 +162,7 @@ root/.built: \ cp src/pyodide.py root/lib/python$(PYMINOR)/site-packages if command -v git > /dev/null 2>&1 \ && git describe --tags > /dev/null 2>&1; then \ - sed -i "s/__version__ =.*/__version__ = '$(shell git describe --tags)'/g" \ + sed -i "s/__version__ =.*/__version__ = '$(shell git describe --tags | sed -r 's/^v//')'/g" \ root/lib/python$(PYMINOR)/site-packages/pyodide.py; \ fi ( \