The relatively ancient setuptools and setuptools scm versions in the Yocto toolchain from PetaLinux 2023.2 (Yocto 4.1 Langdale) are before there was a solid implementation of PEP517, and therefore the toolchain does not support Python installs where only a pyproject.toml is present due to a reliance on distutils. It will error out without a setup.py being present.
I have made some attempts to upgrade the versions of setuptools to allow this, but although it 'works', it also has a tendency to introduce dependency hell where recipes written for older versions of setuptools will fail, requiring brittle patching. It is probably better to find some other mechanism for support, or otherwise update the toolchain to a later version where this is properly supported - i.e. Yocto 5.0 Scarthgap.
The relatively ancient setuptools and setuptools scm versions in the Yocto toolchain from PetaLinux 2023.2 (Yocto 4.1 Langdale) are before there was a solid implementation of PEP517, and therefore the toolchain does not support Python installs where only a
pyproject.tomlis present due to a reliance on distutils. It will error out without asetup.pybeing present.I have made some attempts to upgrade the versions of setuptools to allow this, but although it 'works', it also has a tendency to introduce dependency hell where recipes written for older versions of setuptools will fail, requiring brittle patching. It is probably better to find some other mechanism for support, or otherwise update the toolchain to a later version where this is properly supported - i.e. Yocto 5.0 Scarthgap.