mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 05:34:59 -04:00
Check if Rust lib needs rebuilding. (#13759)
This protects against the common mistake of failing to remember to rebuild Rust code after making changes.
This commit is contained in:
parent
4c4889cac0
commit
ebfeac7c5d
7 changed files with 149 additions and 1 deletions
|
@ -20,6 +20,8 @@ import json
|
|||
import os
|
||||
import sys
|
||||
|
||||
from synapse.util.rust import check_rust_lib_up_to_date
|
||||
|
||||
# Check that we're not running on an unsupported Python version.
|
||||
if sys.version_info < (3, 7):
|
||||
print("Synapse requires Python 3.7 or above.")
|
||||
|
@ -78,3 +80,6 @@ if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
|
|||
from synapse.util.patch_inline_callbacks import do_patch
|
||||
|
||||
do_patch()
|
||||
|
||||
|
||||
check_rust_lib_up_to_date()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue