bitbake python3-pygit2 fails but succeeds via devhsell


Daniel Squires
 

Hi,
I have a recipe (See below) for python3-pygit2 which fails at do_compile if I just try to run it via

bitbake python3-pygit2

However if I instead

bitbake python3-pygit2 -c devhsell

and then

../temp/run.do_compile

It succeeds. Now I'm relatively new to devshell but I thought these were supposed to be equivalent.

How can I figure out what is going on here?

SUMMARY = "Bindings to the libgit2 shared library, implements Git plumbing. Supports Python 3.6+ and PyPy3 7.3+"
HOMEPAGE = "https://github.com/libgit2/pygit2"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=c79469bcf6b93359579b76045ec0f0dc"
 
SRC_URI[sha256sum] = "20894433df1146481aacae37e2b0f3bbbfdea026db2f55061170bd9823e40b19"
 
DEPENDS += "python3-pip-native libgit2 python3-cffi"
 
inherit pypi setuptools3
 
export LIBGIT2 = "${RECIPE_SYSROOT}${prefix}"
 
do_compile:append() {
    ${PYTHON} setup.py -q bdist_egg --dist-dir ./
}
 
do_install:append() {
    install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
}
 
 
BBCLASSEXTEND = "native nativesdk"