spack/lib/spack
Chris Green 01eaca607f Environment path sanitization and sourcing (#8476)
Add two functions to the EnvironmentModifications object to help
users sanitize environment variables in their package definitions:

* deprioritize_system_paths: this keeps system paths in the
  environment variable but moves them to the end.
* prune_duplicate_paths: remove any duplicate paths from the
  variable

This includes testing for the new functions as well as for
(previously-untested) old convenience functions for environment
variable manipulation.

This also adds special handling for bash functions so they
will be defined when the exported environment file is sourced.
2019-05-07 11:29:18 +09:00
..
docs extend Version class so that 2.0 > 1.develop > 1.1 and develop > master > head > trunk > 9999 (#1983) 2019-05-03 03:32:40 +09:00
env Binary caches on MacOS - allow expanded RPATHs (#11345) 2019-05-04 06:41:57 +09:00
external copyright: update license headers for 2013-2019 copyright. 2019-01-01 00:44:28 -08:00
llnl Maintain a view for an environment (#10017) 2019-04-10 16:00:12 -07:00
spack Environment path sanitization and sourcing (#8476) 2019-05-07 11:29:18 +09:00