mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
classes/python_pep517: consolidate stub do_configure
As PEP517 doesn't have an explicit configure step, we can stub out the do_configure task once instead of the calling classes doing it. (From OE-Core rev: fd17edbd00f1583eb9e1912ab269dd4dc2631a6f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6f5ee7fffb
commit
7fee41dcef
@@ -3,9 +3,3 @@ inherit python_pep517 python3native python3-dir setuptools3-base
|
|||||||
DEPENDS += "python3 python3-flit-core-native"
|
DEPENDS += "python3 python3-flit-core-native"
|
||||||
|
|
||||||
PEP517_BUILD_API = "flit_core.buildapi"
|
PEP517_BUILD_API = "flit_core.buildapi"
|
||||||
|
|
||||||
python_flit_core_do_configure () {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
EXPORT_FUNCTIONS do_configure
|
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ PEP517_INSTALL_PYTHON:class-native = "nativepython3"
|
|||||||
# pypa/installer option to control the bytecode compilation
|
# pypa/installer option to control the bytecode compilation
|
||||||
INSTALL_WHEEL_COMPILE_BYTECODE ?= "--compile-bytecode=0"
|
INSTALL_WHEEL_COMPILE_BYTECODE ?= "--compile-bytecode=0"
|
||||||
|
|
||||||
|
# PEP517 doesn't have a specific configure step, so set an empty do_configure to avoid
|
||||||
|
# running base_do_configure.
|
||||||
|
python_pep517_do_configure () {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
# When we have Python 3.11 we can parse pyproject.toml to determine the build
|
# When we have Python 3.11 we can parse pyproject.toml to determine the build
|
||||||
# API entry point directly
|
# API entry point directly
|
||||||
python_pep517_do_compile () {
|
python_pep517_do_compile () {
|
||||||
@@ -47,4 +53,4 @@ python_pep517_do_bootstrap_install () {
|
|||||||
unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PEP517_WHEEL_PATH}/*.whl
|
unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PEP517_WHEEL_PATH}/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_FUNCTIONS do_compile do_install
|
EXPORT_FUNCTIONS do_configure do_compile do_install
|
||||||
|
|||||||
@@ -3,9 +3,3 @@ inherit python_pep517 python3native setuptools3-base
|
|||||||
DEPENDS += "python3-poetry-core-native"
|
DEPENDS += "python3-poetry-core-native"
|
||||||
|
|
||||||
PEP517_BUILD_API = "poetry.core.masonry.api"
|
PEP517_BUILD_API = "poetry.core.masonry.api"
|
||||||
|
|
||||||
python_poetry_core_do_configure () {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
EXPORT_FUNCTIONS do_configure
|
|
||||||
|
|||||||
@@ -3,9 +3,3 @@ inherit setuptools3-base python_pep517
|
|||||||
DEPENDS += "python3-setuptools-native python3-wheel-native"
|
DEPENDS += "python3-setuptools-native python3-wheel-native"
|
||||||
|
|
||||||
PEP517_BUILD_API = "setuptools.build_meta"
|
PEP517_BUILD_API = "setuptools.build_meta"
|
||||||
|
|
||||||
setuptools_build_meta_do_configure () {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
EXPORT_FUNCTIONS do_configure
|
|
||||||
|
|||||||
Reference in New Issue
Block a user