yaml: use ruamel.yaml instead of pyyaml

- ruamel.yaml allows round-tripping comments from/to files
- ruamel.yaml is single-source, python2/python3 compatible
This commit is contained in:
Todd Gamblin
2018-08-19 18:11:52 -07:00
parent 2e8a820afd
commit 63004e3de1
68 changed files with 5165 additions and 8136 deletions

View File

@@ -49,13 +49,6 @@ if sys.version_info[:2] == (2, 6):
sys.path.insert(0, spack_external_libs)
# Handle vendoring of YAML specially, as it has two versions.
if sys.version_info[0] == 2:
spack_yaml_libs = os.path.join(spack_external_libs, "yaml/lib")
else:
spack_yaml_libs = os.path.join(spack_external_libs, "yaml/lib3")
sys.path.insert(0, spack_yaml_libs)
# Once we've set up the system path, run the spack main method
import spack.main # noqa
sys.exit(spack.main.main())