浏览代码

Fix .whl version when no explicit --version is specified

rdb 9 年之前
父节点
当前提交
58c1581c0c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      makepanda/makepanda.py

+ 3 - 0
makepanda/makepanda.py

@@ -368,6 +368,9 @@ if VERSION is None:
     else:
         VERSION = ParsePandaVersion("dtool/PandaVersion.pp")
 
+if WHLVERSION is None:
+    WHLVERSION = VERSION
+
 print("Version: %s" % VERSION)
 if RUNTIME or RTDIST:
     print("Core API Version: %s" % COREAPI_VERSION)