• Xavier Thompson's avatar
    component/macros: Add macro.variable.eggs · 7a735fcd
    Xavier Thompson authored
    This is a generalisation of macro.pythonpath.eggs which allows paths
    from eggs to be placed into any environment variable, and provides a
    way to specify subpaths for each egg from the egg location.
    
    Like macro.pythonpath.eggs, the environment variable is placed in an
    environment section at install time after the eggs are installed and
    before the environment section is read by the section which uses it.
    
    ```
    [environment-section]
    PATH = some/path
    
    [modify-environment]
    <= macro.variable.eggs
    variable = ANY_VARIABLE
    eggs =
      blue_egg
      yellow_egg
      red_egg
    subpaths =
      blue_egg subpath/specific/to/blue
      yellow_egg subpath/specific/to/yellow
    
    [section-that-uses-environment]
    recipe = zc.recipe.egg:custom
    environment = environment-section
    depends =
      ${modify-environment:recipe}
    
    ```
    7a735fcd
macro.pythonpath.eggs.cfg 1.01 KB