We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
meets_python_minimum_version
1 parent 7162966 commit 7b15c04Copy full SHA for 7b15c04
cpython-unix/build-main.py
@@ -11,6 +11,7 @@
11
import subprocess
12
import sys
13
14
+from pythonbuild.cpython import meets_python_minimum_version
15
from pythonbuild.downloads import DOWNLOADS
16
from pythonbuild.utils import (
17
compress_python_archive,
@@ -165,7 +166,9 @@ def main():
165
166
release_tag = release_tag_from_git()
167
168
# Guard against accidental misuse of the free-threaded flag with older versions
- if "freethreaded" in args.options and python_majmin not in ("3.13", "3.14"):
169
+ if "freethreaded" in args.options and not meets_python_minimum_version(
170
+ python_majmin, "3.13"
171
+ ):
172
print(
173
"Invalid build option: 'freethreaded' is only compatible with CPython 3.13+ (got %s)"
174
% cpython_version
0 commit comments