mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
makepanda: change getversion.py to take version from setup.cfg
[skip ci]
This commit is contained in:
parent
e69c412c2b
commit
d028bebb52
@ -4,13 +4,13 @@
|
|||||||
# and returns it on the command-line. This is useful for the
|
# and returns it on the command-line. This is useful for the
|
||||||
# automated scripts that build the Panda3D releases.
|
# automated scripts that build the Panda3D releases.
|
||||||
|
|
||||||
from makepandacore import ParsePandaVersion, ParsePluginVersion
|
from makepandacore import ParsePandaVersion, ParsePluginVersion, GetMetadataValue
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if '--runtime' in sys.argv:
|
if '--runtime' in sys.argv:
|
||||||
version = ParsePluginVersion("dtool/PandaVersion.pp")
|
version = ParsePluginVersion("dtool/PandaVersion.pp")
|
||||||
else:
|
else:
|
||||||
version = ParsePandaVersion("dtool/PandaVersion.pp")
|
version = GetMetadataValue('version')
|
||||||
|
|
||||||
version = version.strip()
|
version = version.strip()
|
||||||
sys.stdout.write(version)
|
sys.stdout.write(version)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user