Skip to content

Commit 2fb7d6e

Browse files
authored
Update default Python versions (#3970)
Drops Python 3.8, which is EOL, see https://devguide.python.org/versions/, and adds Python 3.12, which is the default e.g. on Ubuntu 24.04 LTS.
1 parent 2cc31d6 commit 2fb7d6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build_tools/python_deploy/build_linux_packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# ./build_tools/python_deploy/build_linux_packages.sh
1717
#
1818
# Build specific Python versions and packages to custom directory:
19-
# TM_PYTHON_VERSIONS="cp38-cp38 cp39-cp39" \
19+
# TM_PYTHON_VERSIONS="cp39-cp39 cp310-cp310" \
2020
# TM_PACKAGES="torch-mlir" \
2121
# TM_OUTPUT_DIR="/tmp/wheelhouse" \
2222
# ./build_tools/python_deploy/build_linux_packages.sh
@@ -46,7 +46,7 @@ TM_RELEASE_DOCKER_IMAGE="${TM_RELEASE_DOCKER_IMAGE:-quay.io/pypa/manylinux2014_$
4646
# ./build_tools/docker/Dockerfile
4747
TM_CI_DOCKER_IMAGE="${TM_CI_DOCKER_IMAGE:-powderluv/torch-mlir-ci:latest}"
4848
# Version of Python to use in Release builds. Ignored in CIs.
49-
TM_PYTHON_VERSIONS="${TM_PYTHON_VERSIONS:-cp38-cp38 cp310-cp310 cp311-cp311}"
49+
TM_PYTHON_VERSIONS="${TM_PYTHON_VERSIONS:-cp310-cp310 cp311-cp311 cp312-cp312}"
5050
# Location to store Release wheels
5151
TM_OUTPUT_DIR="${TM_OUTPUT_DIR:-${this_dir}/wheelhouse}"
5252
# What "packages to build"

docs/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ The following additional environmental variables can be used to customize your d
349349
```
350350

351351
* Custom Python Versions for Release builds:
352-
Version of Python to use in Release builds. Ignored in CIs. Defaults to `cp38-cp38 cp39-cp39 cp310-cp310`
352+
Version of Python to use in Release builds. Ignored in CIs. Defaults to `cp39-cp39 cp310-cp310 cp312-cp312`
353353
```shell
354-
TM_PYTHON_VERSIONS="cp38-cp38 cp39-cp39 cp310-cp310"
354+
TM_PYTHON_VERSIONS="cp39-cp39 cp310-cp310 cp312-cp312"
355355
```
356356

357357
* Location to store Release build wheels

0 commit comments

Comments
 (0)