spack/bin
Massimiliano Culpo a474d83d58 bugfix: work around ruamel.yaml vendoring issues (#9725)
- Delete references to ruamel.yaml at Spack start-up, if they are present

- ruamel.yaml generates a .pth file when installed via pip that has the
  effect of always preferring the version of this package installed at
  site scope (effectively preventing us from vendoring it).

- This mechanism triggers when implicitly importing the 'site' module
  when the python interpreter is started. In this PR we explicitly delete
  references to 'ruamel.yaml' and 'ruamel' in sys.modules, if any, after
  we set 'sys.path' to search from the directory where we store vendored
  packages. This ensures that the imports after those statements will be
  done from our vendored version.

- See #9206 for further details
2018-11-06 16:06:18 -08:00
..
sbang relicense: replace LGPL headers with Apache-2.0/MIT SPDX headers 2018-10-17 14:42:06 -07:00
spack bugfix: work around ruamel.yaml vendoring issues (#9725) 2018-11-06 16:06:18 -08:00
spack-python relicense: replace LGPL headers with Apache-2.0/MIT SPDX headers 2018-10-17 14:42:06 -07:00