Skip to contentSkip to conversation

Fix setuptools_scm build error for several python packages

PATCH In review Tim Orling 2 participants 2 messages Jul 11, 2017

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/1 Fix setuptools_scm build error for several python packages

python-setuptools-scm-native is needed at build time for:
python-cheroot
python-cherrypy
python-portend
python-tempora

---
 recipes-devtools/python/python-cheroot_5.1.0.bb   | 2 +-
 recipes-devtools/python/python-cherrypy_10.1.1.bb | 2 +-
 recipes-devtools/python/python-portend_1.8.bb     | 2 +-
 recipes-devtools/python/python-tempora_1.6.1.bb   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
recipes-devtools/python/python-cheroot_5.1.0.bb +1 -1
index 2da3115..e8795d1 100644
@@ -14,7 +14,7 @@ FILES_${PN} += "${datadir}/cheroot"
 
 BBCLASSEXTEND = "nativesdk"
 
-DEPENDS += " swig-native"
+DEPENDS += " swig-native python-setuptools-scm-native"
 
 RDEPENDS_${PN} += " \
     python-pip \
recipes-devtools/python/python-cherrypy_10.1.1.bb +1 -1
index 2a75fd8..6a9086a 100644
@@ -14,7 +14,7 @@ FILES_${PN} += "${datadir}/CherryPy"
 
 BBCLASSEXTEND = "nativesdk"
 
-DEPENDS += " swig-native"
+DEPENDS += " swig-native python-setuptools-scm-native"
 
 RDEPENDS_${PN} += " \
     python-pip \
recipes-devtools/python/python-portend_1.8.bb +1 -1
index f50de7c..926d238 100644
@@ -14,7 +14,7 @@ FILES_${PN} += "${datadir}/portend"
 
 BBCLASSEXTEND = "nativesdk"
 
-DEPENDS += " swig-native"
+DEPENDS += " swig-native python-setuptools-scm-native"
 
 RDEPENDS_${PN} += " \
     python-pip \
recipes-devtools/python/python-tempora_1.6.1.bb +1 -1
index 417818b..4412030 100644
@@ -14,7 +14,7 @@ FILES_${PN} += "${datadir}/tempora"
 
 BBCLASSEXTEND = "nativesdk"
 
-DEPENDS += " swig-native"
+DEPENDS += " swig-native python-setuptools-scm-native"
 
 RDEPENDS_${PN} += " \
     python-pip \
Signature · 1 line
2.9.4
#1 lore raw

I actually wasn't able to reproduce the issue.I added alexapi to my IMAGE_INSTALL and ran a build, see below:

[clsulliv@clsulliv build]$ bitbake core-image-minimal
Parsing recipes: 100% |############################################################################################################| Time: 0:00:08 Parsing of 1825 .bb files complete (0 cached, 1825 parsed). 2581 targets, 143 skipped, 0 masked, 0 errors.
NOTE: There are 4 recipes to be removed from sysroot x86_64, removing...
NOTE: There are 1 recipes to be removed from sysroot corei7-64, removing...
NOTE: There are 1 recipes to be removed from sysroot intel-corei7-64, removing...
NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "intel-corei7-64"
DISTRO            = "poky"
DISTRO_VERSION    = "2.3"
TUNE_FEATURES     = "m64 corei7"
TARGET_FPU        = ""
meta
meta-poky
meta-yocto-bsp    = "pyro:7c27bf2dd85ee77d643d975add4256e957652a5c"
meta-intel        = "pyro:16aea09d224f3ed2021623d17c3e807f4b8ff18d"
meta-oe           = "pyro:5e82995148a2844c6f483ae5ddd1438d87ea9fb7"
meta-alexa        = "master:1b5618a1af6ea79f51aa89480b857648584c581f"

meta-python
meta-multimedia = "pyro:5e82995148a2844c6f483ae5ddd1438d87ea9fb7"

Initialising tasks: 100% |#########################################################################################################| Time: 0:00:11 Checking sstate mirror object availability: 100% |#################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 5678 tasks of which 5653 didn't need to be rerun and all succeeded.

I'm curious as to what's different for you guys.

---
Cal

Quoted 66 lines · Tim Orling

python-setuptools-scm-native is needed at build time for:
python-cheroot
python-cherrypy
python-portend
python-tempora

---
  recipes-devtools/python/python-cheroot_5.1.0.bb   | 2 +-
  recipes-devtools/python/python-cherrypy_10.1.1.bb | 2 +-
  recipes-devtools/python/python-portend_1.8.bb     | 2 +-
  recipes-devtools/python/python-tempora_1.6.1.bb   | 2 +-
  4 files changed, 4 insertions(+), 4 deletions(-)
recipes-devtools/python/python-cheroot_5.1.0.bb +1 -1
index 2da3115..e8795d1 100644
@@ -14,7 +14,7 @@ FILES_${PN} += "${datadir}/cheroot"
 
  BBCLASSEXTEND = "nativesdk"
 
-DEPENDS += " swig-native"
+DEPENDS += " swig-native python-setuptools-scm-native"
 
  RDEPENDS_${PN} += " \
      python-pip \
recipes-devtools/python/python-cherrypy_10.1.1.bb +1 -1
index 2a75fd8..6a9086a 100644
@@ -14,7 +14,7 @@ FILES_${PN} += "${datadir}/CherryPy"
 
  BBCLASSEXTEND = "nativesdk"
 
-DEPENDS += " swig-native"
+DEPENDS += " swig-native python-setuptools-scm-native"
 
  RDEPENDS_${PN} += " \
      python-pip \
recipes-devtools/python/python-portend_1.8.bb +1 -1
index f50de7c..926d238 100644
@@ -14,7 +14,7 @@ FILES_${PN} += "${datadir}/portend"
 
  BBCLASSEXTEND = "nativesdk"
 
-DEPENDS += " swig-native"
+DEPENDS += " swig-native python-setuptools-scm-native"
 
  RDEPENDS_${PN} += " \
      python-pip \
recipes-devtools/python/python-tempora_1.6.1.bb +1 -1
index 417818b..4412030 100644
@@ -14,7 +14,7 @@ FILES_${PN} += "${datadir}/tempora"
 
  BBCLASSEXTEND = "nativesdk"
 
-DEPENDS += " swig-native"
+DEPENDS += " swig-native python-setuptools-scm-native"
 
  RDEPENDS_${PN} += " \
      python-pip \