diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-07-30 17:03:31 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-04 18:04:03 +0100 |
| commit | 3ca199c5f80f92defdf35b756a9c148cd57a4e05 (patch) | |
| tree | 5be67346717e7b82b24e52497fe610524cab8c88 /meta | |
| parent | 7a3cf79a8e19d9717a8a43cc39301958a22938dd (diff) | |
| download | poky-3ca199c5f80f92defdf35b756a9c148cd57a4e05.tar.gz | |
classes/python_pep517: centralise shared inherits
For the build process to actually work some inherits are always needed:
- python3native for the python that is actually running build.
- setuptools3-base (badly named) defines how to build extensions and
where to put modules.
Instead of inheriting these in every class, inherit them once in the
python_pep517 class.
(From OE-Core rev: 449b226aca6a5db378dc5576dde47499925dfb26)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/python_flit_core.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes-recipe/python_hatchling.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes-recipe/python_mesonpy.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes-recipe/python_pep517.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes-recipe/python_poetry_core.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes-recipe/python_setuptools_build_meta.bbclass | 2 |
6 files changed, 7 insertions, 5 deletions
diff --git a/meta/classes-recipe/python_flit_core.bbclass b/meta/classes-recipe/python_flit_core.bbclass index c5480654f3..cb40ab0faf 100644 --- a/meta/classes-recipe/python_flit_core.bbclass +++ b/meta/classes-recipe/python_flit_core.bbclass | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
| 5 | # | 5 | # |
| 6 | 6 | ||
| 7 | inherit python_pep517 python3native python3-dir setuptools3-base | 7 | inherit python_pep517 |
| 8 | 8 | ||
| 9 | DEPENDS += "python3-flit-core-native" | 9 | DEPENDS += "python3-flit-core-native" |
| 10 | 10 | ||
diff --git a/meta/classes-recipe/python_hatchling.bbclass b/meta/classes-recipe/python_hatchling.bbclass index b5a3c3feea..6765ddbe8c 100644 --- a/meta/classes-recipe/python_hatchling.bbclass +++ b/meta/classes-recipe/python_hatchling.bbclass | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
| 5 | # | 5 | # |
| 6 | 6 | ||
| 7 | inherit python_pep517 python3native python3-dir setuptools3-base | 7 | inherit python_pep517 |
| 8 | 8 | ||
| 9 | DEPENDS += "python3-hatchling-native" | 9 | DEPENDS += "python3-hatchling-native" |
| 10 | 10 | ||
diff --git a/meta/classes-recipe/python_mesonpy.bbclass b/meta/classes-recipe/python_mesonpy.bbclass index 37b231cef5..3613ea19c7 100644 --- a/meta/classes-recipe/python_mesonpy.bbclass +++ b/meta/classes-recipe/python_mesonpy.bbclass | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
| 5 | # | 5 | # |
| 6 | 6 | ||
| 7 | inherit meson setuptools3-base python3targetconfig python_pep517 | 7 | inherit meson python_pep517 |
| 8 | 8 | ||
| 9 | # meson_do_qa_configure does the wrong thing here because | 9 | # meson_do_qa_configure does the wrong thing here because |
| 10 | # mesonpy runs "meson setup ..." in do_compile context. | 10 | # mesonpy runs "meson setup ..." in do_compile context. |
diff --git a/meta/classes-recipe/python_pep517.bbclass b/meta/classes-recipe/python_pep517.bbclass index 2c144d39b3..4935b2cbe9 100644 --- a/meta/classes-recipe/python_pep517.bbclass +++ b/meta/classes-recipe/python_pep517.bbclass | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | # This class will build a wheel in do_compile, and use pypa/installer to install | 10 | # This class will build a wheel in do_compile, and use pypa/installer to install |
| 11 | # it in do_install. | 11 | # it in do_install. |
| 12 | 12 | ||
| 13 | inherit python3native python3-dir setuptools3-base | ||
| 14 | |||
| 13 | DEPENDS:append = " python3-build-native python3-installer-native" | 15 | DEPENDS:append = " python3-build-native python3-installer-native" |
| 14 | 16 | ||
| 15 | # Where to execute the build process from | 17 | # Where to execute the build process from |
diff --git a/meta/classes-recipe/python_poetry_core.bbclass b/meta/classes-recipe/python_poetry_core.bbclass index c7dc5d0382..35a2f137cb 100644 --- a/meta/classes-recipe/python_poetry_core.bbclass +++ b/meta/classes-recipe/python_poetry_core.bbclass | |||
| @@ -4,6 +4,6 @@ | |||
| 4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
| 5 | # | 5 | # |
| 6 | 6 | ||
| 7 | inherit python_pep517 python3native setuptools3-base | 7 | inherit python_pep517 |
| 8 | 8 | ||
| 9 | DEPENDS += "python3-poetry-core-native" | 9 | DEPENDS += "python3-poetry-core-native" |
diff --git a/meta/classes-recipe/python_setuptools_build_meta.bbclass b/meta/classes-recipe/python_setuptools_build_meta.bbclass index 046b4ffb74..f09f7e9a91 100644 --- a/meta/classes-recipe/python_setuptools_build_meta.bbclass +++ b/meta/classes-recipe/python_setuptools_build_meta.bbclass | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
| 5 | # | 5 | # |
| 6 | 6 | ||
| 7 | inherit setuptools3-base python_pep517 | 7 | inherit python_pep517 |
| 8 | 8 | ||
| 9 | DEPENDS += "python3-setuptools-native python3-wheel-native" | 9 | DEPENDS += "python3-setuptools-native python3-wheel-native" |
| 10 | 10 | ||
