Skip to contentSkip to conversation

ref-manual: classes.rst: add python-setuptools3_rust and python_pyo3 classes

PATCH New [email protected] 1 participant 1 message Feb 14, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/1 ref-manual: classes.rst: add python-setuptools3_rust and python_pyo3 classes

From: Michael Opdenacker <[email protected]>

Cc Tim Orling <[email protected]>
Cc Alex Kiernan <[email protected]>
Cc Quentin Schulz <[email protected]>

---

Changes in V2:
- Reword to highlight that python_pyo3 is internal to python-setuptools3_rust, as pointed out by Quentin Schulz

---
 documentation/ref-manual/classes.rst | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
documentation/ref-manual/classes.rst +25 -0
index b5443c0d0a..310be59912 100644
@@ -2231,6 +2231,31 @@ The :ref:`ref-classes-python_poetry_core` class enables building Python modules
 
 Internally this uses the :ref:`ref-classes-python_pep517` class.
 
+.. _ref-classes-python_pyo3:
+
+``python_pyo3``
+===============
+
+The :ref:`ref-classes-python_pyo3` class helps make sure that Python extensions
+written in Rust and built with `PyO3 <https://pyo3.rs/>`__, properly set up the
+environment for cross compilation.
+
+This class is internal to the :ref:`ref-classes-python-setuptools3_rust` class
+and is not meant to be used directly in recipes.
+
+.. _ref-classes-python-setuptools3_rust:
+
+``python-setuptools3_rust``
+===========================
+
+The :ref:`ref-classes-python-setuptools3_rust` class enables building Python
+extensions implemented in Rust with `PyO3 <https://pyo3.rs/>`__, which allows
+to compile and distribute Python extensions written in Rust as easily
+as if they were written in C.
+
+This class inherits the :ref:`ref-classes-setuptools3` and
+:ref:`ref-classes-python_pyo3` classes.
+
 .. _ref-classes-pixbufcache:
 
 ``pixbufcache``
Signature · 1 line
2.37.2