• Xavier Thompson's avatar
    [feat] Add 'zc.buildout' mode to 'extra-paths' · 3e87a0e2
    Xavier Thompson authored
    This mode is similar to 'legacy' mode as it uses only the paths of
    the currently running distributions for zc.buildout and dependencies,
    but unlike 'legacy' mode it respects the order in which these appear
    in sys.path, avoiding unexpected results.
    
    This is now set to the default because it is closer to 'legacy' mode
    and because it has a nice property: running in succession
    
      `buildout buildout:extra-paths= bootstrap` (1)
      `bin/buildout` (2)
    
    will result in the (1) installing zc.buildout and its dependencies
    in /eggs in isolation from the environment, and (2) using only the
    paths of these in /eggs, i.e. continuing to operate in isolation,
    even without setting extra-paths explictly.
    
    Before this change, (2) would have still used  the whole `sys.path`
    unless extra-paths was set otherwise.
    
    With this change, we can remove 'extra-paths=legacy' in the tests
    that previously required it.
    3e87a0e2
variables-extending-and-substitutions.rst 16.9 KB