diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-11 17:12:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-13 12:23:48 +0000 |
commit | f2a0c52f651d21cd6608f6841a1145d4ba4ecc50 (patch) | |
tree | 97a0d9c83b2805b6b25bb4b6773aa664a8d96b30 | |
parent | a50bf48f900b4a67d622c9833c391b049a04d2da (diff) | |
download | poky-f2a0c52f651d21cd6608f6841a1145d4ba4ecc50.tar.gz |
python_pep517: move PEP517_SOURCE_PATH to python_pep517
Now we have the start of a PEP-517 base class, the PEP517_SOURCE_PATH
variable can be defined in there instead of the classes that use it.
(From OE-Core rev: 69944121f49f613568bf0c62ae6b3b47af195dbe)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/flit_core.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/python_pep517.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/setuptools_build_meta.bbclass | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass index 1ef8ce9429..5a602f54ab 100644 --- a/meta/classes/flit_core.bbclass +++ b/meta/classes/flit_core.bbclass | |||
@@ -6,9 +6,6 @@ flit_core_do_configure () { | |||
6 | : | 6 | : |
7 | } | 7 | } |
8 | 8 | ||
9 | # Where to execute the build process from | ||
10 | PEP517_SOURCE_PATH ?= "${S}" | ||
11 | |||
12 | # TODO: ideally this uses pypa/build | 9 | # TODO: ideally this uses pypa/build |
13 | flit_core_do_compile () { | 10 | flit_core_do_compile () { |
14 | cd ${PEP517_SOURCE_PATH} | 11 | cd ${PEP517_SOURCE_PATH} |
diff --git a/meta/classes/python_pep517.bbclass b/meta/classes/python_pep517.bbclass index 76660e70f8..756333bcf2 100644 --- a/meta/classes/python_pep517.bbclass +++ b/meta/classes/python_pep517.bbclass | |||
@@ -3,6 +3,9 @@ | |||
3 | 3 | ||
4 | DEPENDS:append = " python3-pip-native" | 4 | DEPENDS:append = " python3-pip-native" |
5 | 5 | ||
6 | # Where to execute the build process from | ||
7 | PEP517_SOURCE_PATH ?= "${S}" | ||
8 | |||
6 | # The directory where wheels should be written too. Build classes | 9 | # The directory where wheels should be written too. Build classes |
7 | # will ideally [cleandirs] this but we don't do that here in case | 10 | # will ideally [cleandirs] this but we don't do that here in case |
8 | # a recipe wants to install prebuilt wheels. | 11 | # a recipe wants to install prebuilt wheels. |
diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass index 424be85608..8791a2965f 100644 --- a/meta/classes/setuptools_build_meta.bbclass +++ b/meta/classes/setuptools_build_meta.bbclass | |||
@@ -2,9 +2,6 @@ inherit setuptools3-base python_pep517 | |||
2 | 2 | ||
3 | DEPENDS += "python3-setuptools-native python3-wheel-native" | 3 | DEPENDS += "python3-setuptools-native python3-wheel-native" |
4 | 4 | ||
5 | # Where to execute the build process from | ||
6 | PEP517_SOURCE_PATH ?= "${S}" | ||
7 | |||
8 | setuptools_build_meta_do_configure () { | 5 | setuptools_build_meta_do_configure () { |
9 | : | 6 | : |
10 | } | 7 | } |