From 0fca5a5a2070d32cd70ec2efd5912e0ef37a2714 Mon Sep 17 00:00:00 2001 From: Michael Opdenacker Date: Tue, 14 Feb 2023 11:23:31 +0100 Subject: ref-manual: classes.rst: add python-setuptools3_rust and python_pyo3 classes (From yocto-docs rev: 65d41f164354494dae52949ce0532fd855de16ec) Signed-off-by: Michael Opdenacker Cc: Tim Orling Cc: Alex Kiernan Cc: Quentin Schulz Signed-off-by: Richard Purdie --- documentation/ref-manual/classes.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'documentation/ref-manual') diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index b5443c0d0a..310be59912 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst @@ -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 `__, 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 `__, 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`` -- cgit v1.2.3-54-g00ecf