provision: Avoid distutils; keep PROVISION_VERSION as a tuple.

distutils is deprecated in Python 3.10 and will be removed in Python
3.12.  We don’t need a full-powered version parser for this anyway.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-07-20 13:24:54 -07:00
committed by Tim Abbott
parent 22ebf701aa
commit 412e90f601
5 changed files with 13 additions and 23 deletions

View File

@@ -362,7 +362,7 @@ def main(options: argparse.Namespace) -> int:
version_file = os.path.join(UUID_VAR_PATH, "provision_version")
print(f"writing to {version_file}\n")
with open(version_file, "w") as f:
f.write(PROVISION_VERSION + "\n")
f.write(".".join(map(str, PROVISION_VERSION)) + "\n")
print()
print(OKBLUE + "Zulip development environment setup succeeded!" + ENDC)