[oe] [meta-python][morty][PATCH 2/2] python-setuptools-scm: add native to BBCLASSEXTEND

Peter Kolbus peter.kolbus at garmin.com
Thu Oct 31 16:33:59 UTC 2019


From: Daniela Plascencia <daniela.plascencia at linux.intel.com>

Enables a native variant of python-setuptools-scm
by adding BBCLASSEXTEND to the recipe.

Signed-off-by: Daniela Plascencia <daniela.plascencia at linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

(cherry picked from commit 3aac48c722fa836e04e95a495d758b8ee0d0cdda)

Signed-off-by: Peter Kolbus <peter.kolbus at garmin.com>
---
 .../recipes-devtools/python/python-setuptools-scm_1.15.0.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-setuptools-scm_1.15.0.bb b/meta-python/recipes-devtools/python/python-setuptools-scm_1.15.0.bb
index 45204c98c..afbc83ea9 100644
--- a/meta-python/recipes-devtools/python/python-setuptools-scm_1.15.0.bb
+++ b/meta-python/recipes-devtools/python/python-setuptools-scm_1.15.0.bb
@@ -6,8 +6,10 @@ SRC_URI[md5sum] = "b6916c78ed6253d6602444fad4279c5b"
 SRC_URI[sha256sum] = "daf12d05aa2155a46aa357453757ffdc47d87f839e62114f042bceac6a619e2f"
 
 PYPI_PACKAGE = "setuptools_scm"
-inherit pypi setuptools
 
-RDEPENDS_${PN} = "python-py python-setuptools python-argparse python-debugger python-json"
+RDEPENDS_${PN}_class-target = "python-py python-setuptools python-argparse python-debugger python-json"
+RDEPENDS_${PN}_class-native = "python-setuptools-native"
 
+BBCLASSEXTEND =+ "native"
 
+inherit pypi setuptools
-- 
2.23.0



More information about the Openembedded-devel mailing list