Skip to content

Commit

Permalink
SConstruct: ensure Python 3.10 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
josephsl committed May 7, 2024
1 parent 2354f5e commit 37f2b59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 37f2b59

Please sign in to comment.