mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
committed by
Tim Abbott
parent
22ebf701aa
commit
412e90f601
@@ -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)
|
||||
|
Reference in New Issue
Block a user