Hi Ross, I am confused, as it seems to have been running /usr/bin/python at some point along the line... which is strange. I decided to take these two lines
DEPENDS = "python python-six" RDEPENDS_${PN} += "python-lang python-shell python-six python-debugger" and rewrite them into RDEPENDS_${PN} += "python-core python-six python-debugger" and now things work. That's the only change. I think this might be DEPENDS vs RDEPENDS that screwed me up (and the naming of python recipes).. but I'm not really sure.. The working recipe is below: DESCRIPTION = "Python declarative parser for binary data" HOMEPAGE = "http://construct.readthedocs.org/en/latest/" SECTION = "devel/python" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=3fd0f2c25089e629957285e6bc402a20" PYPI_PACKAGE = "construct" inherit pypi setuptools SRC_URI[md5sum] = "39407f91407138f687ea2ecf8d758a1f" SRC_URI[sha256sum] = "c23ef47fd5751d821e5c17d9b3b02d1f3c465e66b8a205b9c791c4abef747138" RDEPENDS_${PN} += "python-core python-six python-debugger" On Fri, Mar 23, 2018 at 2:53 PM Burton, Ross <ross.bur...@intel.com> wrote: > Should work, as the setuptools class depends on > python-distribute-native which is provided by > python-setuptools-native, and the class also inherits pythonnative so > it should be running the python from the sysroot and not the host > python. > > I'd verify that it's not explicitly running /usr/bin/python at some > point, instead of the python binary in $PATH. > > Ross > > On 23 March 2018 at 18:46, Giordon Stark <kra...@gmail.com> wrote: > > Hi, > > > > I'm a bit perplexed. I don't know what I'm doing wrong here, but this is > the > > log data: > > > > Log data follows: > > | DEBUG: Executing shell function do_compile > > | Traceback (most recent call last): > > | File "setup.py", line 2, in <module> > > | from setuptools import setup > > | ImportError: No module named setuptools > > | ERROR: python setup.py build execution failed. > > | WARNING: > > > /local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/python-construct/2.9.39-r0/temp/run.do_compile.3286:1 > > exit 1 from 'exit 1' > > | ERROR: Function failed: do_compile (log file is located at > > > /local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/python-construct/2.9.39-r0/temp/log.do_compile.3286) > > ERROR: Task > > (/local/d4/gstark/meta-l1calo/recipes-python/python-construct_2.9.39.bb: > do_compile) > > failed with exit code '1' > > > > with the recipe looking like this... (below). Any ideas? > > > > DESCRIPTION = "Python declarative parser for binary data" > > HOMEPAGE = "http://construct.readthedocs.org/en/latest/" > > SECTION = "devel/python" > > LICENSE = "BSD-3-Clause" > > LIC_FILES_CHKSUM = "file://LICENSE;md5=3fd0f2c25089e629957285e6bc402a20" > > > > PYPI_PACKAGE = "construct" > > inherit pypi setuptools > > > > SRC_URI[md5sum] = "39407f91407138f687ea2ecf8d758a1f" > > SRC_URI[sha256sum] = > > "c23ef47fd5751d821e5c17d9b3b02d1f3c465e66b8a205b9c791c4abef747138" > > > > DEPENDS = "python python-six" > > RDEPENDS_${PN} += "python-lang python-shell python-six python-debugger" > > -- > > Giordon Stark > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > > -- Giordon Stark
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto