This is probably not available in dunfel, but in master there are
bbclasses that handle this:

inherit pypi python_setuptools_build_meta

So try with master, and then consider your options.

Alex

On Fri, 4 Nov 2022 at 00:03, John Klug <[email protected]> wrote:
>
> I am using Dunfell.
>
> What should I do in a recipe if a python project has no setup.py?
>
> Specifically:
> https://github.com/pyhys/minimalmodbus
>
> I tried adding a trivial setup.py:
>
> >from setuptools import setup
> >if __name__ == '__main__':
> >    setup()
>
> This results in the recipe failing while trying to "import serial" from the 
> python code in the project:
>
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | Traceback (most recent call last):
> |   File "setup.py", line 4, in <module>
> |     setup()
>
>    ...
>
> |   File 
> "/home/jklug/mlinux/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/python3-minimalmodbus/2.0.1-r0/git/minimalmodbus.py",
>  line 38, in <module>
> |     import serial
> | ModuleNotFoundError: No module named 'serial'
>
>
>
> John Klug
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58484): https://lists.yoctoproject.org/g/yocto/message/58484
Mute This Topic: https://lists.yoctoproject.org/mt/94795363/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to