mirror of
git://git.yoctoproject.org/poky
synced 2026-04-02 02:49:11 +00:00
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>
This commit is contained in:
parent
7a3cf79a8e
commit
3ca199c5f8
@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
inherit python_pep517 python3native python3-dir setuptools3-base
|
||||
inherit python_pep517
|
||||
|
||||
DEPENDS += "python3-flit-core-native"
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
inherit python_pep517 python3native python3-dir setuptools3-base
|
||||
inherit python_pep517
|
||||
|
||||
DEPENDS += "python3-hatchling-native"
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
inherit meson setuptools3-base python3targetconfig python_pep517
|
||||
inherit meson python_pep517
|
||||
|
||||
# meson_do_qa_configure does the wrong thing here because
|
||||
# mesonpy runs "meson setup ..." in do_compile context.
|
||||
|
||||
@ -10,6 +10,8 @@
|
||||
# This class will build a wheel in do_compile, and use pypa/installer to install
|
||||
# it in do_install.
|
||||
|
||||
inherit python3native python3-dir setuptools3-base
|
||||
|
||||
DEPENDS:append = " python3-build-native python3-installer-native"
|
||||
|
||||
# Where to execute the build process from
|
||||
|
||||
@ -4,6 +4,6 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
inherit python_pep517 python3native setuptools3-base
|
||||
inherit python_pep517
|
||||
|
||||
DEPENDS += "python3-poetry-core-native"
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
inherit setuptools3-base python_pep517
|
||||
inherit python_pep517
|
||||
|
||||
DEPENDS += "python3-setuptools-native python3-wheel-native"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user