From 6db6d6ffbd7c18c755e73695feb90503e186b877 Mon Sep 17 00:00:00 2001 From: Giovanni Bussi <giovanni.bussi@gmail.com> Date: Thu, 21 Feb 2019 12:03:23 +0100 Subject: [PATCH] Fixed warning when parsing VERSION I removed the newline at the end of the string --- python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index eb414cecd..f4a3c4553 100644 --- a/python/setup.py +++ b/python/setup.py @@ -40,7 +40,7 @@ if plumedname is None: plumedversion = os.getenv("plumed_version") if plumedversion is None: - plumedversion = subprocess.check_output(['grep','-v','#','./VERSION']).decode("utf-8") + plumedversion = subprocess.check_output(['grep','-v','#','./VERSION']).decode("utf-8").rstrip() print( "Module name " + plumedname ) print( "Version number " + plumedversion ) -- GitLab