Repository navigation
Commit 1b29701
Select the top-level pyproject.toml when reading build requirements
pip 26.2.1 builds with flit_core and its sdist now ships a second
pyproject.toml under build-project/ that has no [build-system] table.
_read_pyproject grabbed the first basename match (the build-project one),
so build_deps found no build requirements, flit-core was never installed,
and the --no-build-isolation build failed with
"BackendUnavailable: Cannot import 'flit_core.buildapi'".
Select the shallowest match instead, i.e. the project's own
{name}-{version}/pyproject.toml.
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent bb1b381 commit 1b29701
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
| 218 | + | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
0 commit comments