Skip to content

Commit 1b27b93

Browse files
anmyachevJokeren
andauthored
[Build] Cleanup Python 3.9 related code/docs (#8222)
Continuation of triton-lang/triton@286d9c2 Signed-off-by: Anatoly Myachev <[email protected]> Co-authored-by: Keren Zhou <[email protected]>
1 parent 04bf2c3 commit 1b27b93

File tree

4 files changed

+4
-21
lines changed

4 files changed

+4
-21
lines changed

.github/workflows/wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ jobs:
8888
export CIBW_MANYLINUX_AARCH64_IMAGE="quay.io/pypa/manylinux_2_28_${{ matrix.config.arch }}:latest"
8989
fi
9090
91-
export CIBW_BUILD="cp3{9,10,11,12,13,13t,14,14t}-manylinux_${{ matrix.config.arch }}"
92-
export CIBW_SKIP="cp{35,36,37,38}-*"
91+
export CIBW_BUILD="cp3{10,11,12,13,13t,14,14t}-manylinux_${{ matrix.config.arch }}"
92+
export CIBW_SKIP="cp{35,36,37,38,39}-*"
9393
export CIBW_ENABLE=cpython-freethreading
9494
python3 -m cibuildwheel . --output-dir wheelhouse
9595

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You can install the latest stable release of Triton from pip:
3838
pip install triton
3939
```
4040

41-
Binary wheels are available for CPython 3.9-3.13.
41+
Binary wheels are available for CPython 3.10-3.14.
4242

4343
# Install from source
4444

docs/getting-started/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can install the latest stable release of Triton from pip:
1414
1515
pip install triton
1616
17-
Binary wheels are available for CPython 3.9-3.13.
17+
Binary wheels are available for CPython 3.10-3.14.
1818

1919
-----------
2020
From Source

third_party/proton/csrc/lib/Context/Python.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,15 @@ PyObject *_Py_XNewRef(PyObject *obj) {
2525
#define Py_XNewRef(obj) _Py_XNewRef((PyObject *)(obj))
2626
#endif
2727

28-
// bpo-40421 added PyFrame_GetCode() to Python 3.9.0b1
29-
#if PY_VERSION_HEX < 0x030900B1
30-
PyCodeObject *getFrameCodeObject(PyFrameObject *frame) {
31-
assert(frame != nullptr);
32-
assert(frame->f_code != nullptr);
33-
return (PyCodeObject *)(Py_NewRef(frame->f_code));
34-
}
35-
#else
3628
PyCodeObject *getFrameCodeObject(PyFrameObject *frame) {
3729
assert(frame != nullptr);
3830
return PyFrame_GetCode(frame);
3931
}
40-
#endif
4132

42-
// bpo-40421 added PyFrame_GetBack() to Python 3.9.0b1
43-
#if PY_VERSION_HEX < 0x030900B1
44-
PyFrameObject *getFrameBack(PyFrameObject *frame) {
45-
assert(frame != nullptr);
46-
return (PyFrameObject *)(Py_XNewRef(frame->f_back));
47-
}
48-
#else
4933
PyFrameObject *getFrameBack(PyFrameObject *frame) {
5034
assert(frame != nullptr);
5135
return PyFrame_GetBack(frame);
5236
}
53-
#endif
5437

5538
std::string unpackPyobject(PyObject *pyObject) {
5639
if (PyBytes_Check(pyObject)) {

0 commit comments

Comments
 (0)