Skip to content

Commit 1d07c79

Browse files
committed
be explicit
1 parent d0b7505 commit 1d07c79

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

advanced_source/cpp_custom_ops.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ If you need to compile CUDA code (for example, ``.cu`` files), then instead use
6666
Please see `extension-cpp <https://github.com/pytorch/extension-cpp>`_ for an
6767
example for how this is set up.
6868

69-
In PyTorch 2.6 and later, if your custom library adheres to the `CPython stable
70-
Limited API <https://docs.python.org/3/c-api/stable.html>`_ or avoids CPython
71-
entirely, you can build one python agnostic wheel against a minimum supported
72-
CPython version through setuptools' ``py_limited_api`` flag, like so:
69+
Starting with PyTorch 2.6, you can now build a single wheel for multiple CPython
70+
versions (similar to what you would do for pure python packages). In particular,
71+
if your custom library adheres to the `CPython Stable Limited API
72+
<https://docs.python.org/3/c-api/stable.html>`_ or avoids CPython entirely, you
73+
can build one Python agnostic wheel against a minimum supported CPython version
74+
through setuptools' ``py_limited_api`` flag, like so:
7375

7476
.. code-block:: python
7577

0 commit comments

Comments
 (0)