summaryrefslogtreecommitdiffstats
path: root/meta/classes/python_pep517.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-16 18:32:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-17 16:44:33 +0000
commit0f31b46827503c8908851bda4e30bcb49a475f02 (patch)
tree68b4f00be05ae302db3bb675ab36450beda37f1d /meta/classes/python_pep517.bbclass
parent49fe9edcde10b24140a1682ee5f79e86d572d07c (diff)
downloadpoky-0f31b46827503c8908851bda4e30bcb49a475f02.tar.gz
classes/python_pep517: add more comments
Remove mention of prebuilt wheels, this is for the full PEP517 build process and recipes that want to install prebuilt wheels can use pypa/installer directly. (From OE-Core rev: d42664a5b5fb460185be996428dbaba6bb81ec3f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/python_pep517.bbclass')
-rw-r--r--meta/classes/python_pep517.bbclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/python_pep517.bbclass b/meta/classes/python_pep517.bbclass
index 83c6dcb5c7..73bcf9ba07 100644
--- a/meta/classes/python_pep517.bbclass
+++ b/meta/classes/python_pep517.bbclass
@@ -1,5 +1,8 @@
1# Common infrastructure for Python packages that use PEP-517 compliant packaging. 1# Common infrastructure for Python packages that use PEP-517 compliant packaging.
2# https://www.python.org/dev/peps/pep-0517/ 2# https://www.python.org/dev/peps/pep-0517/
3#
4# This class will build a wheel in do_compile, and use pypa/installer to install
5# it in do_install.
3 6
4DEPENDS:append = " python3-installer-native" 7DEPENDS:append = " python3-installer-native"
5 8
@@ -9,14 +12,14 @@ PEP517_SOURCE_PATH ?= "${S}"
9# The PEP517 build API entry point 12# The PEP517 build API entry point
10PEP517_BUILD_API ?= "unset" 13PEP517_BUILD_API ?= "unset"
11 14
12# The directory where wheels should be written too. Build classes 15# The directory where wheels will be written
13# will ideally [cleandirs] this but we don't do that here in case
14# a recipe wants to install prebuilt wheels.
15PEP517_WHEEL_PATH ?= "${WORKDIR}/dist" 16PEP517_WHEEL_PATH ?= "${WORKDIR}/dist"
16 17
18# The interpreter to use for installed scripts
17PEP517_INSTALL_PYTHON = "python3" 19PEP517_INSTALL_PYTHON = "python3"
18PEP517_INSTALL_PYTHON:class-native = "nativepython3" 20PEP517_INSTALL_PYTHON:class-native = "nativepython3"
19 21
22# pypa/installer option to control the bytecode compilation
20INSTALL_WHEEL_COMPILE_BYTECODE ?= "--compile-bytecode=0" 23INSTALL_WHEEL_COMPILE_BYTECODE ?= "--compile-bytecode=0"
21 24
22# When we have Python 3.11 we can parse pyproject.toml to determine the build 25# When we have Python 3.11 we can parse pyproject.toml to determine the build