A quickly sketched tool to generate yocto bitbake recipes from a python requirements file.
$ cd /path/to/this/repo
$ nix develop
# ..
Once within the environment, all required dependencies will be available for this tool to run properly.
The above requires that nix
is installed and that the flakes
feature is enabled.
Create a ./in-requirements.txt
file with the requirements of your choice:
py-pkg-a==2.2.1
py-pkg-b==5.6.1
py-pkg-c
Run the tool as follow:
$ just
# ..
# -> ./out/
You will find the generated yocto bitbake recipes under ./out/recipe
and the intermediate python sdist under ./out/sdist
.
-
Improve support for optional / extra dependencies.
Currently, those are all output under a single
RDEPENDS:${PN}-extras
extra group with enough human readable meta information for the end user to manually classify those later as needed.Note that as complex combinations of logical operators are allowed, it would be pretty involved to classify each dependency under its proper extra group.
-
Add support for generating transitive depdencies.
Currently, this tool only generate recipes explicitly listed in the requirement input file and won't generate anything else.
-
Add support to customize input and output paths.
Currently, the tool assume input requirements are in file at a hardcoded location (
./in-requirements.txt
) and produces its outputs under an hardcoded directory (./out/
).
-
NFJones/pipoe: Generate python bitbake recipes!
Was previously using this tool but it no longer works with the current version of pypi.
-
Attempted to use this tool and found out unexpected / dangerous use of
sudo
. Attempted to fix the tool only to find out it would not work on some dependencies.
Licensed under Apache License, Version 2.0 LICENSE.