diff options
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/classes.rst | 15 | ||||
-rw-r--r-- | documentation/ref-manual/variables.rst | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index d94db03616..f6f341e104 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
@@ -2005,6 +2005,21 @@ When inherited by a recipe, the ``perlnative`` class supports using the | |||
2005 | native version of Perl built by the build system rather than using the | 2005 | native version of Perl built by the build system rather than using the |
2006 | version provided by the build host. | 2006 | version provided by the build host. |
2007 | 2007 | ||
2008 | .. _ref-classes-pypi: | ||
2009 | |||
2010 | ``pypi.bbclass`` | ||
2011 | ================ | ||
2012 | |||
2013 | The ``pypi`` class sets variables appropriately for recipes that build | ||
2014 | Python modules from `PyPI <https://pypi.org/>`__, the Python Package Index. | ||
2015 | By default it determines the PyPI package name based upon :term:`BPN` | ||
2016 | (stripping the "python-" or "python3-" prefix off if present), however in | ||
2017 | some cases you may need to set it manually in the recipe by setting | ||
2018 | :term:`PYPI_PACKAGE`. | ||
2019 | |||
2020 | Variables set by the ``pypi`` class include :term:`SRC_URI`, :term:`SECTION`, | ||
2021 | :term:`HOMEPAGE`, :term:`UPSTREAM_CHECK_URI`, and :term:`UPSTREAM_CHECK_REGEX`. | ||
2022 | |||
2008 | .. _ref-classes-python_flit_core: | 2023 | .. _ref-classes-python_flit_core: |
2009 | 2024 | ||
2010 | ``python_flit_core.bbclass`` | 2025 | ``python_flit_core.bbclass`` |
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 067f8eed63..2685c61219 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -6177,6 +6177,14 @@ system and gives an overview of their function and contents. | |||
6177 | 6177 | ||
6178 | :term:`PV` is the default value of the :term:`PKGV` variable. | 6178 | :term:`PV` is the default value of the :term:`PKGV` variable. |
6179 | 6179 | ||
6180 | :term:`PYPI_PACKAGE` | ||
6181 | When inheriting the :ref:`pypi <ref-classes-pypi>` class, specifies the | ||
6182 | `PyPI <https://pypi.org/>`__ package name to be built. The default value | ||
6183 | is set based upon :term:`BPN` (stripping any "python-" or "python3-" | ||
6184 | prefix off if present), however for some packages it will need to be set | ||
6185 | explicitly if that will not match the package name (e.g. where the | ||
6186 | package name has a prefix, underscores, uppercase letters etc.) | ||
6187 | |||
6180 | :term:`PYTHON_ABI` | 6188 | :term:`PYTHON_ABI` |
6181 | When used by recipes that inherit the | 6189 | When used by recipes that inherit the |
6182 | :ref:`setuptools3 <ref-classes-setuptools3>` class, denotes the | 6190 | :ref:`setuptools3 <ref-classes-setuptools3>` class, denotes the |