diff --git a/recipes-devtools/python/python3_%.bbappend b/recipes-devtools/python/python3_%.bbappend index 0fdf4c99..2c406102 100644 --- a/recipes-devtools/python/python3_%.bbappend +++ b/recipes-devtools/python/python3_%.bbappend @@ -1,10 +1,13 @@ python() { from pathlib import Path + if d.getVar("CLASSOVERRIDE") != "class-target": + return + # we may have no workdir at parsetime -> create directly in DEPLOY_DIR_IMAGE Path(d.getVar("DEPLOY_DIR_IMAGE")).mkdir(parents=True, exist_ok=True) packages = d.getVar('PACKAGES') packages_file_out = Path(d.getVar("DEPLOY_DIR_IMAGE") + "/python_packages.txt").open('w') packages_file_out.write("%s\n" % packages) -} \ No newline at end of file +}