A quickly sketched tool to generate yocto bitbake recipes from a python requirements file.
Install nix.
Enter the reproducible environments.
$ cd /path/to/this/repo
# ..
$ nix-shell
# ..
[nix-shell:/path/to/this/repo]$
Once within the environment, all required dependencies will be available for this tool to run properly.
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
.
-
Add support for dependencies.
Currently, this tool won't generate the recipe's dependencies.
-
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.