瀏覽代碼

Do not record year of build

This value becomes part of get_version_info output,
but if it is changing every year without any other change,
it cannot be a useful indicator of anything.

Using a constant value, makes the package build reproducible.
See https://reproducible-builds.org/ for why this is good.
Bernhard M. Wiedemann 7 年之前
父節點
當前提交
853d9c0807
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      methods.py

+ 1 - 1
methods.py

@@ -43,7 +43,7 @@ def update_version(module_version_string=""):
     f.write("#define VERSION_STATUS \"" + str(version.status) + "\"\n")
     f.write("#define VERSION_BUILD \"" + str(build_name) + "\"\n")
     f.write("#define VERSION_MODULE_CONFIG \"" + str(version.module_config) + module_version_string + "\"\n")
-    f.write("#define VERSION_YEAR " + str(datetime.datetime.now().year) + "\n")
+    f.write("#define VERSION_YEAR " + str(2018) + "\n")
     f.close()
 
     # NOTE: It is safe to generate this file here, since this is still executed serially