Skip to content

Instantly share code, notes, and snippets.

@Adraub
Adraub / YOCTO-PYTHON3-DEPENDENCY-SOLVER.md
Last active July 23, 2026 18:38
Get dependency requirements from a pip package to port it to a yocto specific version

It is useful when you want to create a recipe for a python3 package without any recipe available.

In your bitbake build environment, run this command:

bitbake -s | awk '/^python3/ && !/-native/ && !/-cross/ {
    name = $1;
    ver = $2;
    sub(/^python3-/, "", name);
    sub(/^.*:/, "", ver);
    sub(/-r[0-9]+.*$/, "", ver);