]> code.ossystems Code Review - openembedded-core.git/commitdiff
python_pep517: move PEP517_SOURCE_PATH to python_pep517
authorRoss Burton <ross@burtonini.com>
Fri, 11 Mar 2022 17:12:06 +0000 (17:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 Mar 2022 12:22:42 +0000 (12:22 +0000)
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.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/flit_core.bbclass
meta/classes/python_pep517.bbclass
meta/classes/setuptools_build_meta.bbclass

index 1ef8ce9429e31478c8241fe2b7ef72cfdf5953a9..5a602f54ab86cd67db934488deaa01b0c2d863bf 100644 (file)
@@ -6,9 +6,6 @@ flit_core_do_configure () {
     :
 }
 
-# Where to execute the build process from
-PEP517_SOURCE_PATH ?= "${S}"
-
 # TODO: ideally this uses pypa/build
 flit_core_do_compile () {
     cd ${PEP517_SOURCE_PATH}
index 76660e70f85ab5bdcd9800c2ebba1575663a1f12..756333bcf2816708448c0fb48804ee78db13b0ee 100644 (file)
@@ -3,6 +3,9 @@
 
 DEPENDS:append = " python3-pip-native"
 
+# Where to execute the build process from
+PEP517_SOURCE_PATH ?= "${S}"
+
 # The directory where wheels should be written too. Build classes
 # will ideally [cleandirs] this but we don't do that here in case
 # a recipe wants to install prebuilt wheels.
index 424be856080b898bf6e067436dff55e5ea8e88ca..8791a2965fbabbd071ef386ebc8baed346161780 100644 (file)
@@ -2,9 +2,6 @@ inherit setuptools3-base python_pep517
 
 DEPENDS += "python3-setuptools-native python3-wheel-native"
 
-# Where to execute the build process from
-PEP517_SOURCE_PATH ?= "${S}"
-
 setuptools_build_meta_do_configure () {
     :
 }