Skip to content

A quickly sketched tool to generate yocto bitbake recipes from a python requirements file

License

Notifications You must be signed in to change notification settings

jraygauthier/jrg-pypi2bitbake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

A quickly sketched tool to generate yocto bitbake recipes from a python requirements file.

Prequisites

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.

Usage

Specifying python requirements

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

Running the tool

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.

To do

  • 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/).

Similar tools

About

A quickly sketched tool to generate yocto bitbake recipes from a python requirements file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published