mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
provision: Run build_pygments_data only if required.
This commit is contained in:
@@ -301,7 +301,14 @@ def main(options):
|
||||
else:
|
||||
print("No need to run `tools/generate-custom-icon-webfont`.")
|
||||
|
||||
build_pygments_data_paths = ["tools/setup/build_pygments_data", "tools/setup/lang.json"]
|
||||
from pygments import __version__ as pygments_version
|
||||
if file_or_package_hash_updated(build_pygments_data_paths, "build_pygments_data_hash", options.is_force,
|
||||
[pygments_version]):
|
||||
run(["tools/setup/build_pygments_data"])
|
||||
else:
|
||||
print("No need to run `tools/setup/build_pygments_data`.")
|
||||
|
||||
run(["scripts/setup/generate_secrets.py", "--development"])
|
||||
run(["tools/update-authors-json", "--use-fixture"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user