| Summary: | recipetool/devtool: add support for Python PEP-517 (pyproject.toml and setup.cfg) packages | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Tim Orling <tim.orling> |
| Component: | devtools / tool chain | Assignee: | Ross Burton <ross.burton> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | jstephan, meta.mr.watcher, meta.watcher, randy.macleod, ross.burton, sgw, tvgamblin |
| Version: | 4.0 | ||
| Target Milestone: | 5.0 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Tim Orling
2022-02-22 23:03:39 UTC
Backport to 3.5 if not too invasive. The first thing that must be changed is the logic at: https://git.yoctoproject.org/poky/tree/scripts/lib/recipetool/create_buildsys_python.py#n158 # Check for non-zero size setup.py files setupfiles = RecipeHandler.checkfiles(srctree, ['setup.py']) for fn in setupfiles: if os.path.getsize(fn): break else: return False This also needs to look for pyproject.toml and setup.cfg files. Based on what files are found, make a decision of how to proceed. For instance, if a pyproject.toml is present, has a [build-system] section and a build-backend that we know about (have a bbclass for) then the recipe should inherit e.g. flit_core, setuptools_build_meta or poetry_core (WIP). Looking for dependencies will also need more than one way to handle it, as recipes without setup.py might include such info in setup.cfg or in pyproject.toml. merged on https://git.yoctoproject.org/poky/commit/?id=d4debbf5b7ff9e0f489530aa748c559d631eeb57 so closing ACCEPTED means you have accepted the bug and are working on it. The way to mark a bug as closed is RESOLVED FIXED. (In reply to Tim Orling from comment #4) > ACCEPTED means you have accepted the bug and are working on it. The way to > mark a bug as closed is RESOLVED FIXED. got it thank you! bulk change to add Saul's non-WR address. Bulk change: Remove Saul's old WR address. |