{"body":"#!/bin/bash\n\nclass=\"setuptools3-base\"\necho \"Finding recipes which inherit $class...\"\nraw_recipes=$(bitbake-layers show-recipes --recipes-only -i $class -b | awk '!/Load|NOTE|===|Parsing/ { print $1}')\n#echo \"$raw_recipes\"\nrecipes=$(echo -n $raw_recipes | tr '\\n' ' ')\n#fetch_recipes=$(bitbake-layers show-recipes --recipes-only -i $class -b | awk '!/Load|NOTE|===|Parsing/ { print \"-c fetch \" $1}' | tr '\\n' ' ')\n#echo \"$fetch_recipes\"\n\n#echo \"Fetching recipes: $recipes\"\n#bitbake ${fetch_recipes}\n\n# toml get --toml-path $(find $(bitbake-getvar S -r python3-cryptography --value) -name pyproject.toml) build-system.build-backend\n# toml get --toml-path $(find $(bitbake-getvar S -r python3-jsonschema --value) -maxdepth 1 -name pyproject.toml) build-system.build-backend\nrecipes_pyprojecttoml=\"\"\nrecipes_setuppy=\"\"\nrecipes_setupcfg=\"\"\nrecipes_buildsystem=\"\"\n#recipes=\"python3-cryptography python3-jsonschema\"\nfor recipe in $recipes\ndo\n        bitbake --no-setscene -c unpack $recipe\n        source=$(bitbake-getvar S -r ${recipe} --value)\n        echo \"source: $source\"\n        toml=$(find $source -name pyproject.toml | xargs)\n        if [ ! -z \"$toml\" ]; then\n                recipes_pyprojecttoml=\"$recipes_pyprojecttoml $recipe\"\n                echo \"pyproject.toml: $toml\"\n        fi\n        setuppy=$(find $source -name setup.py | xargs)\n        if [ ! -z \"$setuppy\" ]; then\n                recipes_setuppy=\"$recipes_setuppy $recipe\"\n                echo \"setup.py: $setuppy\"\n        fi\n        setupcfg=$(find $source -name setup.cfg -print -quit)\n        if [ ! -z \"$setucfg\" ]; then\n                echo \"setup.cfg: $setupcfg\"\n                recipes_setupcfg=\"$recipes_setupcfg $recipe\"\n        fi\n        if [ ! -z \"$toml\" ]; then\n                backend=$(toml get --toml-path ${toml} build-system.build-backend)\n                echo \"recipe: $recipe\"\n                echo \"backend: $backend\"\n                recipes_buildsystem=\"$recipes_buildsystem ${recipe}:${backend}\"\n        fi\ndone\n\necho $recipes_pyprojecttoml\necho $recipes_buildsystem","name":"pyproject.sh","extension":"sh","url":"https://www.irccloud.com/pastebin/Be0choRC/pyproject.sh","modified":1643498217,"id":"Be0choRC","size":2055,"lines":50,"own_paste":false,"theme":"","date":1643498217}