Skip to content

Suppport PEP517 Python installs using pyproject.toml without setup.py #97

Description

@josephnobes-stfc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions