summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-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