From 7d12e2019de5bc2311ea8b1060ff917f8aa5c7c2 Mon Sep 17 00:00:00 2001 From: Sumanth V Rao Date: Sun, 9 Dec 2018 20:48:49 +0530 Subject: [PATCH] provision: Generate static bots files using a function call. This shaves about 350ms from the no-op provision runtime. Fixes #10990. --- tools/lib/provision.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/provision.py b/tools/lib/provision.py index 07c386c9d3..106dc9fd44 100755 --- a/tools/lib/provision.py +++ b/tools/lib/provision.py @@ -24,6 +24,7 @@ from version import PROVISION_VERSION if False: from typing import Any +from tools.setup.generate_zulip_bots_static_files import generate_zulip_bots_static_files SUPPORTED_PLATFORMS = { "Ubuntu": [ @@ -299,7 +300,7 @@ def main(options): run(["tools/setup/emoji/build_emoji"]) # copy over static files from the zulip_bots package - run(["tools/setup/generate_zulip_bots_static_files"]) + generate_zulip_bots_static_files() webfont_paths = ["tools/setup/generate-custom-icon-webfont", "static/icons/fonts/template.hbs"] webfont_paths += glob.glob('static/assets/icons/*')