On 3 Nov 2022, at 23:03, John Klug via lists.yoctoproject.org 
<[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   

That project uses [buildsystem] attributes in pyproject.toml, for more details 
I spoke about what this means and how it impacts Yocto at the Yocto Summit 
earlier this year:

https://www.youtube.com/watch?v=To9TSBaIg2Q&list=PLD4M5FoHz-Twd-JGczxzYQ01DJ_4_sAHg&index=15

However, this all landed in kirkstone and nobody has backported it to dunfell 
as far as I’m aware.

Adding the stub setup.py likely did the right thing, and albeit outside of 
Yocto it worked for me:

$ python3 ./setup.py  build
running build
running build_py
creating build
creating build/lib
copying minimalmodbus.py -> build/lib
running egg_info
creating minimalmodbus.egg-info
writing minimalmodbus.egg-info/PKG-INFO
writing dependency_links to minimalmodbus.egg-info/dependency_links.txt
writing requirements to minimalmodbus.egg-info/requires.txt
writing top-level names to minimalmodbus.egg-info/top_level.txt
writing manifest file 'minimalmodbus.egg-info/SOURCES.txt'
reading manifest file 'minimalmodbus.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under 
directory '*'
warning: no previously-included files matching '*.py[co]' found under directory 
'*'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'minimalmodbus.egg-info/SOURCES.txt’

Maybe share the recipe or at least the full logs?

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58487): https://lists.yoctoproject.org/g/yocto/message/58487
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