diff options
author | Ross Burton <ross.burton@arm.com> | 2023-01-12 11:23:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-13 17:32:46 +0000 |
commit | adedac2b3392a86422c5b94fe0ec761304742a9e (patch) | |
tree | 8f2aeb7081739e9019a44a16b1e290ab1840d95f /meta/classes-recipe | |
parent | 1faf47e9e63bc6a136dccae938aa1ba5769d2857 (diff) | |
download | poky-adedac2b3392a86422c5b94fe0ec761304742a9e.tar.gz |
python_pep517: use python3-build, not picobuild
Now that the bootstrap sequence for pypa/build is just
python3-packaging, and python3-pyproject-hooks, we can use build instead
of picobuild.
The only change visible outside of this class is that the variable
PEP517_PICOBUILD_OPTS is now PEP517_BUILD_OPTS, but I'm only aware of one
recipe that used that variable.
(From OE-Core rev: 202c2e3c9481a8841af2556862a76e27d703246d)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/python_pep517.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes-recipe/python_pep517.bbclass b/meta/classes-recipe/python_pep517.bbclass index 202dde0bc3..a1659c5f62 100644 --- a/meta/classes-recipe/python_pep517.bbclass +++ b/meta/classes-recipe/python_pep517.bbclass | |||
@@ -10,7 +10,7 @@ | |||
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 | DEPENDS:append = " python3-picobuild-native python3-installer-native" | 13 | DEPENDS:append = " python3-build-native python3-installer-native" |
14 | 14 | ||
15 | # Where to execute the build process from | 15 | # Where to execute the build process from |
16 | PEP517_SOURCE_PATH ?= "${S}" | 16 | PEP517_SOURCE_PATH ?= "${S}" |
@@ -18,7 +18,8 @@ PEP517_SOURCE_PATH ?= "${S}" | |||
18 | # The directory where wheels will be written | 18 | # The directory where wheels will be written |
19 | PEP517_WHEEL_PATH ?= "${WORKDIR}/dist" | 19 | PEP517_WHEEL_PATH ?= "${WORKDIR}/dist" |
20 | 20 | ||
21 | PEP517_PICOBUILD_OPTS ?= "" | 21 | # Other options to pass to build |
22 | PEP517_BUILD_OPTS ?= "" | ||
22 | 23 | ||
23 | # The interpreter to use for installed scripts | 24 | # The interpreter to use for installed scripts |
24 | PEP517_INSTALL_PYTHON = "python3" | 25 | PEP517_INSTALL_PYTHON = "python3" |
@@ -36,7 +37,7 @@ python_pep517_do_configure () { | |||
36 | # When we have Python 3.11 we can parse pyproject.toml to determine the build | 37 | # When we have Python 3.11 we can parse pyproject.toml to determine the build |
37 | # API entry point directly | 38 | # API entry point directly |
38 | python_pep517_do_compile () { | 39 | python_pep517_do_compile () { |
39 | nativepython3 -m picobuild --source ${PEP517_SOURCE_PATH} --dest ${PEP517_WHEEL_PATH} --wheel ${PEP517_PICOBUILD_OPTS} | 40 | nativepython3 -m build --no-isolation --wheel --outdir ${PEP517_WHEEL_PATH} ${PEP517_SOURCE_PATH} ${PEP517_BUILD_OPTS} |
40 | } | 41 | } |
41 | do_compile[cleandirs] += "${PEP517_WHEEL_PATH}" | 42 | do_compile[cleandirs] += "${PEP517_WHEEL_PATH}" |
42 | 43 | ||