summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/classes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/ref-manual/classes.rst')
-rw-r--r--documentation/ref-manual/classes.rst71
1 files changed, 41 insertions, 30 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 4dd0901623..6ba792d3f9 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -602,22 +602,6 @@ variables are not met, the recipe will be skipped, and if the
602build system attempts to build the recipe then an error will be 602build system attempts to build the recipe then an error will be
603triggered. 603triggered.
604 604
605.. _ref-classes-flit_core:
606
607``flit_core.bbclass``
608=====================
609
610The ``flit_core`` class enables building Python modules which declare
611the `PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant
612``flit_core.buildapi`` ``build-backend`` in the ``[build-system]``
613section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep-0518/>`__).
614
615Python modules built with ``flit_core.buildapi`` are pure Python (no
616``C`` or ``Rust`` extensions).
617
618The resulting ``wheel`` (See `PEP-427 <https://www.python.org/dev/peps/pep-0427/>`__)
619is installed with the :ref:`python_pep517 <ref-classes-python_pep517>` class.
620
621.. _ref-classes-fontcache: 605.. _ref-classes-fontcache:
622 606
623``fontcache.bbclass`` 607``fontcache.bbclass``
@@ -1978,20 +1962,48 @@ When inherited by a recipe, the ``perlnative`` class supports using the
1978native version of Perl built by the build system rather than using the 1962native version of Perl built by the build system rather than using the
1979version provided by the build host. 1963version provided by the build host.
1980 1964
1965.. _ref-classes-python_flit_core:
1966
1967``python_flit_core.bbclass``
1968============================
1969
1970The ``python_flit_core`` class enables building Python modules which declare
1971the `PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant
1972``flit_core.buildapi`` ``build-backend`` in the ``[build-system]``
1973section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep-0518/>`__).
1974
1975Python modules built with ``flit_core.buildapi`` are pure Python (no
1976``C`` or ``Rust`` extensions).
1977
1978Internally this uses the :ref:`python_pep517 <ref-classes-python_pep517>` class.
1979
1981.. _ref-classes-python_pep517: 1980.. _ref-classes-python_pep517:
1982 1981
1983``python_pep517.bbclass`` 1982``python_pep517.bbclass``
1984============================= 1983=========================
1984
1985The ``python_pep517`` class builds and installs a Python ``wheel`` binary
1986archive (see `PEP-517 <https://peps.python.org/pep-0517/>`__).
1985 1987
1986The ``python_pep517`` class installs a Python ``wheel`` binary archive (see 1988Recipes wouldn't inherit this directly, instead typically another class will
1987`PEP-517 <https://peps.python.org/pep-0517/>`__). 1989inherit this, add the relevant native dependencies, and set
1990:term:`PEP517_BUILD_API` to the Python class which implements the PEP-517 build
1991API.
1988 1992
1989The Python ``wheel`` can be built with several classes, including :ref:`flit_core <ref-classes-flit_core>`, 1993Examples of classes which do this are :ref:`python_flit_core
1990:ref:`setuptools_build_meta <ref-classes-setuptools_build_meta>`, and :ref:`setuptools3 <ref-classes-setuptools3>`. 1994<ref-classes-python_flit_core>`, :ref:`python_setuptools_build_meta
1995<ref-classes-python_setuptools_build_meta>`, and :ref:`python_poetry_core
1996<ref-classes-python_poetry_core>`.
1991 1997
1992The path to the wheel to be installed is defined by :term:`PEP517_WHEEL_PATH`. 1998.. _ref-classes-python_poetry_core:
1993This defaults to ``${D}/dist`` and should be respected by the builder class 1999
1994(such as :ref:`flit_core <ref-classes-flit_core>`). 2000``python_poetry_core.bbclass``
2001==============================
2002
2003The ``python_poetry_core`` class enables building Python modules which use the
2004`Poetry Core <https://python-poetry.org>`__ build system.
2005
2006Internally this uses the :ref:`python_pep517 <ref-classes-python_pep517>` class.
1995 2007
1996.. _ref-classes-pixbufcache: 2008.. _ref-classes-pixbufcache:
1997 2009
@@ -2348,12 +2360,12 @@ additional configuration options you want to pass SCons command line.
2348The ``sdl`` class supports recipes that need to build software that uses 2360The ``sdl`` class supports recipes that need to build software that uses
2349the Simple DirectMedia Layer (SDL) library. 2361the Simple DirectMedia Layer (SDL) library.
2350 2362
2351.. _ref-classes-setuptools_build_meta: 2363.. _ref-classes-python_setuptools_build_meta:
2352 2364
2353``setuptools_build_meta.bbclass`` 2365``python_setuptools_build_meta.bbclass``
2354================================= 2366========================================
2355 2367
2356The ``setuptools_build_meta`` class enables building Python modules which 2368The ``python_setuptools_build_meta`` class enables building Python modules which
2357declare the 2369declare the
2358`PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant 2370`PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant
2359``setuptools.build_meta`` ``build-backend`` in the ``[build-system]`` 2371``setuptools.build_meta`` ``build-backend`` in the ``[build-system]``
@@ -2362,8 +2374,7 @@ section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep
2362Python modules built with ``setuptools.build_meta`` can be pure Python or 2374Python modules built with ``setuptools.build_meta`` can be pure Python or
2363include ``C`` or ``Rust`` extensions). 2375include ``C`` or ``Rust`` extensions).
2364 2376
2365The resulting ``wheel`` (See `PEP-427 <https://www.python.org/dev/peps/pep-0427/>`__) 2377Internally this uses the :ref:`python_pep517 <ref-classes-python_pep517>` class.
2366is installed with the :ref:`python_pep517 <ref-classes-python_pep517>` class.
2367 2378
2368.. _ref-classes-setuptools3: 2379.. _ref-classes-setuptools3:
2369 2380