Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion install_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ def python_is_compatible():

python_version = packaging.version.parse(platform.python_version())
version_range = packaging.specifiers.SpecifierSet(version_specifier)
if python_version not in version_range:
# Pass prereleases=True so pre-release interpreters (e.g. 3.15.0b4) are
# accepted when they fall within the supported range; SpecifierSet
# excludes pre-releases by default.
if not version_range.contains(python_version, prereleases=True):
print(
f'ERROR: ExecuTorch does not support python version {python_version}: must satisfy "{version_specifier}"',
file=sys.stderr,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ classifiers = [
"Programming Language :: Python :: 3.14",
]

requires-python = ">=3.10,<3.15"
requires-python = ">=3.10,<3.16"

# Runtime dependencies are declared dynamically (see `dynamic` above) and
# computed in setup.py, so the EXECUTORCH_BUILD_MINIMAL wheel can ship a slimmer
Expand Down
Loading