Skip to content

[kirkstone] switch from distutils3-base.bbclass to the new setuptools3.bbclass #15

@samdolt

Description

@samdolt

Currently we are use manually pip to install codechecker:

# CodeChecker use a native namespace package and can't be installed using
# setup.py install, so we can't simply ihnerit from setuptools3
# Instead, we must install using pip install .
# This code is inspired by the distutils3.bbclass

Next version of Yocto kirkstone now use pip instead of setup.py, as Python deprecated setup.py upstream.

The old behaviour is now in setuptools3_legacy.bbclass. The new setuptools3.bbclass use pip under the hood and should work with codechecker. This would allow us to drop our custom do_install step.

See this thread for more info: https://lore.kernel.org/all/CAAnfSTvjPeyJHjd-FiYoXmxPMaXM0AH9KMXm6n5ooJNfQp80Sw@mail.gmail.com/

This will also remove this warning on kirkstone:
WARNING: distutils-common-base.bbclass is deprecated, please use setuptools3-base.bbclass instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions