From d028bebb52878d6ebb812c76325cceb6393b47a2 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 19 Aug 2019 21:37:32 +0200 Subject: [PATCH] makepanda: change getversion.py to take version from setup.cfg [skip ci] --- makepanda/getversion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makepanda/getversion.py b/makepanda/getversion.py index 4595c0d589..09b483eea3 100755 --- a/makepanda/getversion.py +++ b/makepanda/getversion.py @@ -4,13 +4,13 @@ # and returns it on the command-line. This is useful for the # automated scripts that build the Panda3D releases. -from makepandacore import ParsePandaVersion, ParsePluginVersion +from makepandacore import ParsePandaVersion, ParsePluginVersion, GetMetadataValue import sys if '--runtime' in sys.argv: version = ParsePluginVersion("dtool/PandaVersion.pp") else: - version = ParsePandaVersion("dtool/PandaVersion.pp") + version = GetMetadataValue('version') version = version.strip() sys.stdout.write(version)