Skip to contentSkip to conversation

docs: ref-manual: drop distutils from variables

PATCH In review Tim Orling 2 participants 6 messages Mar 1, 2022 – Mar 2, 2022

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH v2 1/5 docs: ref-manual: drop distutils from variables

The distutils*.bbclasses have been moved to meta-python, so remove mention of them from ref-manual/variables.rst

---
 documentation/ref-manual/variables.rst | 29 ++------------------------
 1 file changed, 2 insertions(+), 27 deletions(-)
documentation/ref-manual/variables.rst +2 -27
index ecb2b60c7..03470cebf 100644
@@ -1982,25 +1982,6 @@ system and gives an overview of their function and contents.
       is included in the default value of
       :term:`OVERRIDES`.
 
-   :term:`DISTUTILS_SETUP_PATH`
-      When used by recipes that inherit the
-      :ref:`distutils3 <ref-classes-distutils3>` class, this variable should
-      be used to specify the directory in which the ``setup.py`` file is
-      located if it is not at the root of the source tree (as specified by
-      :term:`S`). For example, in a recipe where the sources are fetched from
-      a Git repository and ``setup.py`` is in a ``python/pythonmodule``
-      subdirectory, you would have this::
-
-         S = "${WORKDIR}/git"
-         DISTUTILS_SETUP_PATH = "${S}/python/pythonmodule"
-
-      .. note::
-
-         ``distutils`` has been deprecated in Python 3.10 and will be removed
-         in Python 3.12. For this reason, the use of :ref:`distutils3 <ref-classes-distutils3>`
-         is deprecated. Instead use :ref:`setuptools3 <ref-classes-setuptools3>` and the
-         :term:`SETUPTOOLS_SETUP_PATH` variable.
-
    :term:`DL_DIR`
       The central download directory used by the build process to store
       downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
@@ -6023,8 +6004,7 @@ system and gives an overview of their function and contents.
 
    :term:`PYTHON_ABI`
       When used by recipes that inherit the
-      :ref:`distutils3 <ref-classes-distutils3>`,
-      :ref:`setuptools3 <ref-classes-setuptools3>` classes, denotes the
+      :ref:`setuptools3 <ref-classes-setuptools3>` class, denotes the
       Application Binary Interface (ABI) currently in use for Python. By
       default, the ABI is "m". You do not have to set this variable as the
       OpenEmbedded build system sets it for you.
@@ -6033,14 +6013,9 @@ system and gives an overview of their function and contents.
       names used when installing the Python headers and libraries in
       sysroot (e.g. ``.../python3.3m/...``).
 
-      Recipes that inherit the :ref:`distutils3 <ref-classes-distutils3>` class during cross-builds also
-      use this variable to locate the headers and libraries of the
-      appropriate Python that the extension is targeting.
-
    :term:`PYTHON_PN`
       When used by recipes that inherit the
-      `distutils3 <ref-classes-distutils3>`,
-      :ref:`setuptools3 <ref-classes-setuptools3>` classes, specifies the
+      :ref:`setuptools3 <ref-classes-setuptools3>` classe, specifies the
       major Python version being built. For Python 3.x, :term:`PYTHON_PN` would
       be "python3". You do not have to set this variable as the
       OpenEmbedded build system automatically sets it for you.
Signature · 1 line
2.30.2
author
#1 lore raw

PATCH v2 2/5 docs: ref-manual: remove distutils* from classes

The distutils*.bbclasses have been removed from oe-core and moved to meta-python, so remove them from ref-manual/classes.rst.

---
 documentation/ref-manual/classes.rst | 29 ----------------------------
 1 file changed, 29 deletions(-)
documentation/ref-manual/classes.rst +0 -29
index 949217bf4..0ad437d90 100644
@@ -503,35 +503,6 @@ Support for other version control systems such as Subversion is limited
 due to BitBake's automatic fetch dependencies (e.g.
 ``subversion-native``).
 
-.. _ref-classes-distutils3:
-
-``distutils3*.bbclass``
-=======================
-
-The ``distutils3*`` classes support recipes for Python version 3.x
-extensions, which are simple. These recipes usually only need to point
-to the source's archive and then inherit the proper class. Building is
-split into three methods depending on which method the module authors
-used.
-
--  Extensions that use an Autotools-based build system require Autotools
-   and ``distutils``-based classes in their recipes.
-
--  Extensions that use ``distutils``-based build systems require the
-   ``distutils`` class in their recipes.
-
-   .. note::
-
-      ``distutils`` has been deprecated in Python 3.10 and will be removed
-      in Python 3.12. For this reason the ``distutils3*`` classes are now
-      deprecated and will be removed from core in the near future. Instead,
-      use the ``setuptools3*`` classes.
-
-
--  Extensions that use build systems based on ``setuptools3`` require
-   the :ref:`setuptools3 <ref-classes-setuptools3>` class in their
-   recipes.
-
 .. _ref-classes-externalsrc:
 
 ``externalsrc.bbclass``
Signature · 1 line
2.30.2
author
#2 lore raw

PATCH v2 3/5 docs: migration-3.5: distutils move

In reply to Tim Orling

The distutils*.bbclasses have been dropped from oe-core and moved to meta-python.

---
 documentation/migration-guides/migration-3.5.rst | 2 ++
 1 file changed, 2 insertions(+)
documentation/migration-guides/migration-3.5.rst +2 -0
index 8c2a7d2c6..b52ae7119 100644
@@ -54,3 +54,5 @@ Recipe changes
 - :ref:`allarch <ref-classes-allarch>` packagegroups can no longer depend on packages
   which use :term:`PKG` renaming such as :ref:`ref-classes-debian`.
 
+- The `disutils*.bbclasses` have been moved to `meta-python`. The classes and
+  `DISTUTILS*` variables have been removed from the documentation.
Signature · 1 line
2.30.2
author
#3 lore raw

PATCH v2 4/5 docs: migration-2.6 drop distutils labels, terms

In reply to Tim Orling

The distutils* classes and DISUTILS* terms are no longer defined so replace their usage with ``text``.

---
 documentation/migration-guides/migration-2.6.rst | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
documentation/migration-guides/migration-2.6.rst +1 -2
index c68414e1c..11e659de7 100644
@@ -118,8 +118,7 @@ For names of recipes removed because of this repository change, see the
 ---------------------------------------------------------------------------------------------------
 
 Previously, it was possible for Python recipes that inherited the
-``distutils`` and
-:ref:`distutils3 <ref-classes-distutils3>` classes to fetch code
+``distutils`` and ``distutils3`` classes to fetch code
 during the :ref:`ref-tasks-configure` task to satisfy
 dependencies mentioned in ``setup.py`` if those dependencies were not
 provided in the sysroot (i.e. recipes providing the dependencies were
Signature · 1 line
2.30.2
author
#4 lore raw

PATCH v2 5/5 docs: migration-3.3 drop distutils labels, terms

In reply to Tim Orling

The distutils* classes and DISUTILS* terms are no longer defined so replace their usage with ``text``.

---
 documentation/migration-guides/migration-3.3.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
documentation/migration-guides/migration-3.3.rst +4 -4
index f982b1c80..1eb494c28 100644
@@ -90,17 +90,17 @@ example::
 
 then in ``setup.py`` it works with source code in a relative fashion, such
 as ``../../src``. This causes pseudo to fail as it isn't able to track
-the paths properly. This release introduces a new :term:`DISTUTILS_SETUP_PATH`
+the paths properly. This release introduces a new ``DISTUTILS_SETUP_PATH``
 variable so that recipes can specify it explicitly, for example::
 
    S = "${WORKDIR}/git"
    DISTUTILS_SETUP_PATH = "${S}/python/pythonmodule"
 
-Recipes that inherit from :ref:`distutils3 <ref-classes-distutils3>` (or
+Recipes that inherit from ``distutils3`` (or
 :ref:`setuptools3 <ref-classes-setuptools3>` which itself inherits
-:ref:`distutils3 <ref-classes-distutils3>`) that also set :term:`S` to
+``distutils3``) that also set :term:`S` to
 point to a Python module within a subdirectory in the aforementioned
-manner should be changed to set :term:`DISTUTILS_SETUP_PATH` instead.
+manner should be changed to set ``DISTUTILS_SETUP_PATH`` instead.
 
 
 .. _migration-3.3-bitbake:
Signature · 1 line
2.30.2
Reviewed-by on v2 5/5
#5 lore raw

Re: [docs] [PATCH v2 5/5] docs: migration-3.3 drop distutils labels, terms

Hi Tim,

Quoted 4 lines · Tim Orling

The distutils* classes and DISUTILS* terms are no longer defined so replace their usage with ``text``.

Thanks for the updates. For all 5 patches:

... and merged into "master-next".

Thanks again!
Michael.

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