Browse Source

makepanda: change getversion.py to take version from setup.cfg

[skip ci]
rdb 6 years ago
parent
commit
d028bebb52
1 changed files with 2 additions and 2 deletions
  1. 2 2
      makepanda/getversion.py

+ 2 - 2
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)