The issue here is that you are overwriting the DEPENDS after the inherit.
Two ways to solve this problem

Either use

DEPENDS = "python3-astropy-helpers"
PYPI_PACKAGE = "astropy"
inherit pypi


or

PYPI_PACKAGE = "astropy"
inherit pypi

DEPENDS += "python3-astropy-helpers"

python3-setuptools doesn't need to be added at all manually as this is done implicitly by setuptools3 class


On 29.01.21 21:41, ddbab...@bootseeds.com wrote:
I'm attempting to make a simple bitbake recipe for python3-astropy that inherits from pypi and setuptools3.  The very simple recipe is attached.
When I build I'm getting this error:

    |     import pkg_resources

    | ModuleNotFoundError: No module named 'pkg_resources'

    | WARNING: exit code 1 from a shell command.

I don't understand this error because I'm using setuptools3 which I believe contains pkg_resources.  In desperation I added a "DEPENDS = "python3-setuptools" but that did not help either.  I'd appreciate any advice on this.
Thanks




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52158): https://lists.yoctoproject.org/g/yocto/message/52158
Mute This Topic: https://lists.yoctoproject.org/mt/80220743/21656
Mute #python:https://lists.yoctoproject.org/g/yocto/mutehashtag/python
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to