diff --git a/sconstruct b/sconstruct index 879fe10..353bd0e 100644 --- a/sconstruct +++ b/sconstruct @@ -14,8 +14,11 @@ import sys # Linters aren't aware about them. # To avoid Flake8 F821 warnings about them they are imported explicitly. # When using other Scons functions please add them to the line below. -from SCons.Script import BoolVariable, Builder, Copy, Environment, Variables +from SCons.Script import BoolVariable, Builder, Copy, Environment, Variables, EnsurePythonVersion # NOQA: E501, F401 +# Add-on localization exchange facility and the template requires Python 3.10. +# For best practice, use Python 3.11 or later to align with NVDA development. +EnsurePythonVersion(3, 10) sys.dont_write_bytecode = True # Bytecode should not be written for build vars module to keep the repository root folder clean.