• Kirill Smelkov's avatar
    Also detect eggs that are used indirectly · 950b65ce
    Kirill Smelkov authored
    @jerome reports that BOM(ERP5) does not contain `certifi` even though it
    is installed and used:
    
    !1 (comment 185323)
    
    The problem is: we were emitting information only about eggs that are
    explicitly listed in the recipes, but dependent eggs were not reported
    at all.
    
    -> Fix this by using scripts, that buildout installs, as another root to
    scan for eggs from. This works because zc.recipe.eggs puts all installed
    eggs into sys.path adjustement inside those scripts.
    
    On !1 (comment 185331) I
    made wrong statement that .installed.cfg does not contain information
    about which scripts were installed. This is not true: zc.recipe.egg puts
    generated scripts into __buildout_installed__. This makes those scripts
    to be reliable source of truth.
    
    The diff for BOM(ERP5) before and after this patch is as follows:
    
    --- d	2023-06-06 09:51:35.800234166 +0200
    +++ e	2023-06-07 14:11:54.646892623 +0...
    950b65ce
nxdbom_test.py 17.5 KB