Skip to content

Commit 4cb6a9a

Browse files
authored
Require Python 3.10 or higher
1 parent 8154e3f commit 4cb6a9a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

builder/penv_setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
from platformio.package.version import pepver_to_semver
2525
from platformio.compat import IS_WINDOWS
2626

27+
# Check Python version requirement
28+
if sys.version_info < (3, 10):
29+
sys.stderr.write(
30+
f"Error: Python 3.10 or higher is required. "
31+
f"Current version: {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}\n"
32+
f"Please update your Python installation.\n"
33+
)
34+
sys.exit(1)
35+
2736
github_actions = os.getenv('GITHUB_ACTIONS')
2837

2938
PLATFORMIO_URL_VERSION_RE = re.compile(

0 commit comments

Comments
 (0)