mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
docs: add new python packaging classes
Add the new classes used for Python packaging: * flit_core * pip_install_wheel * setuptools_build_meta (From yocto-docs rev: f78fe71f634cbf39857c42e90f8c16e511ba2076) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e2218a9684
commit
6f2365a292
@@ -621,6 +621,22 @@ variables are not met, the recipe will be skipped, and if the
|
||||
build system attempts to build the recipe then an error will be
|
||||
triggered.
|
||||
|
||||
.. _ref-classes-flit_core:
|
||||
|
||||
``flit_core.bbclass``
|
||||
=====================
|
||||
|
||||
The ``flit_core`` class enables building Python modules which declare
|
||||
the `PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant
|
||||
``flit_core.buildapi`` ``build-backend`` in the ``[build-system]``
|
||||
section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep-0518/>`__).
|
||||
|
||||
Python modules built with ``flit_core.buildapi`` are pure Python (no
|
||||
``C`` or ``Rust`` extensions).
|
||||
|
||||
The resulting ``wheel`` (See `PEP-427 <https://www.python.org/dev/peps/pep-0427/>`__)
|
||||
is installed with the :ref:`pip_install_wheel <ref-classes-pip_install_wheel>` class.
|
||||
|
||||
.. _ref-classes-fontcache:
|
||||
|
||||
``fontcache.bbclass``
|
||||
@@ -1996,6 +2012,26 @@ When inherited by a recipe, the ``perlnative`` class supports using the
|
||||
native version of Perl built by the build system rather than using the
|
||||
version provided by the build host.
|
||||
|
||||
.. _ref-classes-pip_install_wheel:
|
||||
|
||||
``pip_install_wheel.bbclass``
|
||||
=============================
|
||||
|
||||
The ``pip_install_wheel`` class uses ``pip`` to install a Python ``wheel``
|
||||
binary archive format (See `PEP-427 <https://www.python.org/dev/peps/pep-0427/>`__)
|
||||
|
||||
The Python ``wheel`` can be built with several classes, including :ref:`flit_core <ref-classes-flit_core>`,
|
||||
:ref:`setuptools_build_meta <ref-classes-setuptools_build_meta>`, and :ref:`setuptools3 <ref-classes-setuptools3>`.
|
||||
|
||||
The absolute path to the built ``wheel`` to be installed is defined by :term:`PYPA_WHEEL` which can be
|
||||
overriden for recipes where the filename or version number of the wheel are not easily
|
||||
determined by the defaults. Other variables which can be used to customize the behavior
|
||||
of the ``pip_install_wheel`` class include:
|
||||
|
||||
- :term:`PIP_INSTALL_ARGS`
|
||||
- :term:`PIP_INSTALL_PACKAGE`
|
||||
- :term:`PIP_INSTALL_DIST_PATH`
|
||||
|
||||
.. _ref-classes-pixbufcache:
|
||||
|
||||
``pixbufcache.bbclass``
|
||||
@@ -2351,6 +2387,23 @@ additional configuration options you want to pass SCons command line.
|
||||
The ``sdl`` class supports recipes that need to build software that uses
|
||||
the Simple DirectMedia Layer (SDL) library.
|
||||
|
||||
.. _ref-classes-setuptools_build_meta:
|
||||
|
||||
``setuptools_build_meta.bbclass``
|
||||
=================================
|
||||
|
||||
The ``setuptools_build_meta`` class enables building Python modules which
|
||||
declare the
|
||||
`PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant
|
||||
``setuptools.build_meta`` ``build-backend`` in the ``[build-system]``
|
||||
section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep-0518/>`__).
|
||||
|
||||
Python modules built with ``setuptools.build_meta`` can be pure Python or
|
||||
include ``C`` or ``Rust`` extensions).
|
||||
|
||||
The resulting ``wheel`` (See `PEP-427 <https://www.python.org/dev/peps/pep-0427/>`__)
|
||||
is installed with the :ref:`pip_install_wheel <ref-classes-pip_install_wheel>` class.
|
||||
|
||||
.. _ref-classes-setuptools3:
|
||||
|
||||
``setuptools3.bbclass``
|
||||
|
||||
Reference in New Issue
Block a user