-
- Downloads
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.
Showing
- lib/spack/spack/test/environment_modifications.py 16 additions, 2 deletionslib/spack/spack/test/environment_modifications.py
- lib/spack/spack/test/util/environment.py 105 additions, 0 deletionslib/spack/spack/test/util/environment.py
- lib/spack/spack/util/environment.py 87 additions, 5 deletionslib/spack/spack/util/environment.py
lib/spack/spack/test/util/environment.py
0 → 100644
Please register or sign in to comment