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 (#58482): https://lists.yoctoproject.org/g/yocto/message/58482
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