Commit 59a6f10
Fix package lookup to use buildout working set instead of importlib.metadata (#14)
* Fix package lookup to use buildout working set instead of importlib.metadata
importlib.metadata.distribution() only finds packages installed in
sys.path, not eggs managed by buildout. This causes a
PackageNotFoundError when the recipe tries to resolve packages that
buildout has resolved but not yet installed into the environment.
Revert to using the buildout working set and pkg_resources to find
package distributions and their extras, which correctly resolves
eggs through buildout's egg resolution mechanism.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 059ecc5 commit 59a6f10
2 files changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 63 | + | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
0 commit comments