Skip to content

Commit f0f1bb7

Browse files
committed
build: add support for python 3.14
1 parent 3be4546 commit f0f1bb7

15 files changed

Lines changed: 21 additions & 20 deletions

.ci/scripts/test_coreml_bc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ REPO_ROOT="${1:-$(pwd)}"
2121
source "${REPO_ROOT}/.ci/scripts/utils.sh"
2222

2323
# Create a conda environment with Python 3.10 for compatibility with old ET versions
24-
# ET 1.0.0 only supports Python >=3.10,<3.13
24+
# ET 1.0.0 only supports Python >=3.10,<3.15
2525
CONDA_ENV_NAME="coreml_bc_test_env"
2626
conda create -y -n "${CONDA_ENV_NAME}" python=3.10
2727

.claude/skills/building/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ conda activate executorch
2323

2424
**Path B — no conda (fall back to venv):**
2525
```bash
26-
# Find a compatible Python (3.10–3.13). On macOS with only Homebrew Python 3.14+,
26+
# Find a compatible Python (3.10–3.14). On macOS with only Homebrew Python 3.14+,
2727
# install a compatible version first: brew install python@3.12
28-
python3.12 -m venv .executorch-venv # or python3.11, python3.10, python3.13
28+
python3.12 -m venv .executorch-venv # or python3.11, python3.10, python3.13, python3.14
2929
source .executorch-venv/bin/activate
3030
pip install --upgrade pip
3131
```
3232

3333
**Then verify (either path):**
3434

3535
Run `python --version` and `cmake --version`. Fix automatically:
36-
- **Python not 3.10–3.13**: recreate the env with a correct Python version.
36+
- **Python not 3.10–3.14**: recreate the env with a correct Python version.
3737
- **cmake missing or < 3.24**: run `pip install 'cmake>=3.24'` inside the env.
3838
- **cmake >= 4.0**: works in practice, no action needed.
3939

.github/workflows/build-wheels-aarch64-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
test-infra-ref: main
3333
with-cuda: disabled
3434
with-rocm: disabled
35-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
35+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3636

3737
build:
3838
needs: generate-matrix

.github/workflows/build-wheels-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
test-infra-ref: main
3333
with-cuda: disabled
3434
with-rocm: disabled
35-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
35+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3636

3737
build:
3838
needs: generate-matrix

.github/workflows/build-wheels-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
test-infra-ref: main
3333
with-cuda: disabled
3434
with-rocm: disabled
35-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
35+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3636

3737
build:
3838
needs: generate-matrix

.github/workflows/build-wheels-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
test-infra-ref: main
3636
with-cuda: disabled
3737
with-rocm: disabled
38-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
38+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3939

4040
build:
4141
needs: generate-matrix

.github/workflows/pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
27+
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
2828
with:
2929
runner: linux.2xlarge
3030
docker-image: ci-image:executorch-ubuntu-22.04-qnn-sdk

README-wheel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ExecuTorch is to enable wider customization and deployment capabilities of the
55
PyTorch programs.
66

77
The `executorch` pip package is in beta.
8-
* Supported python versions: 3.10, 3.11, 3.12, 3.13
8+
* Supported python versions: 3.10, 3.11, 3.12, 3.13, 3.14
99
* Compatible systems: Linux x86_64, Linux aarch64, macOS aarch64
1010

1111
The prebuilt `executorch.runtime` module included in this package provides a way

docs/source/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This section is intended to describe the necessary steps to take a PyTorch model
88
## System Requirements
99
The following are required to install the ExecuTorch host libraries, needed to export models and run from Python. Requirements for target end-user devices are backend dependent. See the appropriate backend documentation for more information.
1010

11-
- Python 3.10 - 3.13
11+
- Python 3.10 - 3.14
1212
- g++ version 7 or higher, clang++ version 5 or higher, or another C++17-compatible toolchain.
1313
- Linux (x86_64 or ARM64), macOS (ARM64), or Windows (x86_64).
1414
- Intel-based macOS systems require building PyTorch from source (see [Building From Source](using-executorch-building-from-source.md) for instructions).

docs/source/pathway-beginner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Install ExecuTorch and verify your setup before attempting to export a model.
6565

6666
Install the ExecuTorch Python package, export a MobileNet V2 model using XNNPACK, and run your first inference. This is the canonical entry point for all new users.
6767

68-
**Difficulty:** Beginner | **Prerequisites:** Python 3.10–3.13, PyTorch, g++7+ or clang5+
68+
**Difficulty:** Beginner | **Prerequisites:** Python 3.10–3.14, PyTorch, g++7+ or clang5+
6969
:::
7070

7171
::::

0 commit comments

Comments
 (0)