Skip to contentSkip to conversation

ref-manual: variables: document PYPI_PACKAGE_EXT, PYPI_SRC_URI

PATCH Applied Trevor Gamblin 2 participants 2 messages May 21, 2024 – May 23, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ref-manual: variables: document PYPI_PACKAGE_EXT, PYPI_SRC_URI

These are variables that some Python recipes are starting to use, but there is no documentation for them currently in the reference manual.

---
 documentation/ref-manual/variables.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)
documentation/ref-manual/variables.rst +13 -0
index 3f37f42f2..09199b5c9 100644
@@ -6829,6 +6829,19 @@ system and gives an overview of their function and contents.
       explicitly if that will not match the package name (e.g. where the
       package name has a prefix, underscores, uppercase letters etc.)
 
+   :term:`PYPI_PACKAGE_EXT`
+      When inheriting the :ref:`ref-classes-pypi` class, specifies the
+      file extension to use when fetching a package from `PyPI
+      <https://pypi.org/>`__. Default is tar.gz.
+
+   :term:`PYPI_SRC_URI`
+      When inheriting the :ref:`ref-classes-pypi` class, specifies the
+      full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
+      fetching the package to be built. The default value is constructed
+      based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
+      :term:`PV`. Most recipes will not need to set this variable unless
+      they are building an unstable (i.e. development) version.
+
    :term:`PYTHON_ABI`
       When used by recipes that inherit the :ref:`ref-classes-setuptools3`
       class, denotes the Application Binary Interface (ABI) currently in use
Signature · 1 line
2.45.1
Reviewed-by on v1 1/1 Applied
#1 lore raw

Hi Trevor,

Quoted 22 lines · Trevor Gamblin

These are variables that some Python recipes are starting to use, but there is no documentation for them currently in the reference manual.

---
  documentation/ref-manual/variables.rst | 13 +++++++++++++
  1 file changed, 13 insertions(+)
documentation/ref-manual/variables.rst +6 -0
index 3f37f42f2..09199b5c9 100644
@@ -6829,6 +6829,19 @@ system and gives an overview of their function and contents.
        explicitly if that will not match the package name (e.g. where the
        package name has a prefix, underscores, uppercase letters etc.)
 
+   :term:`PYPI_PACKAGE_EXT`
+      When inheriting the :ref:`ref-classes-pypi` class, specifies the
+      file extension to use when fetching a package from `PyPI
+      <https://pypi.org/>`__. Default is tar.gz.
+
+   :term:`PYPI_SRC_URI`

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 6847

Quoted 10 lines
documentation/ref-manual/variables.rst +7 -0
+      When inheriting the :ref:`ref-classes-pypi` class, specifies the
+      full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
+      fetching the package to be built. The default value is constructed
+      based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
+      :term:`PV`. Most recipes will not need to set this variable unless
+      they are building an unstable (i.e. development) version.
+
     :term:`PYTHON_ABI`
        When used by recipes that inherit the :ref:`ref-classes-setuptools3`
        class, denotes the Application Binary Interface (ABI) currently in use

Many thanks for the update!

Merged into master-next.
Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com