mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
makepanda: Strip version suffixes when parsing setup.cfg metadata
Fixes #1539
This commit is contained in:
parent
a2fa54f385
commit
d5263b597b
@ -421,6 +421,12 @@ if VERSION is None:
|
||||
else:
|
||||
# Take the value from the setup.cfg file.
|
||||
VERSION = GetMetadataValue('version')
|
||||
match = re.match(r'^\d+\.\d+(\.\d+)+', VERSION)
|
||||
if not match:
|
||||
exit("Invalid version %s in setup.cfg, three digits are required" % (VERSION))
|
||||
if WHLVERSION is None:
|
||||
WHLVERSION = VERSION
|
||||
VERSION = match.group()
|
||||
|
||||
if WHLVERSION is None:
|
||||
WHLVERSION = VERSION
|
||||
|
Loading…
x
Reference in New Issue
Block a user