externals: move spack.util.ordereddict to external/ordereddict_backport

This commit is contained in:
Todd Gamblin 2018-06-20 10:45:41 -05:00
parent 508bbf407b
commit 137456fbf3
5 changed files with 5 additions and 8 deletions

View File

@ -21,10 +21,7 @@
from _pytest.outcomes import fail, TEST_OUTCOME
if sys.version_info[:2] == (2, 6):
from ordereddict import OrderedDict
else:
from collections import OrderedDict # nopyqver
from ordereddict_backport import OrderedDict
def pytest_sessionstart(session):

View File

@ -57,6 +57,7 @@
from contextlib import contextmanager
from six import string_types
from six import iteritems
from ordereddict_backport import OrderedDict
import yaml
from yaml.error import MarkedYAMLError
@ -69,7 +70,6 @@
import spack.architecture
import spack.schema
from spack.error import SpackError
from spack.util.ordereddict import OrderedDict
# Hacked yaml for configuration files preserves line numbers.
import spack.util.spack_yaml as syaml

View File

@ -28,6 +28,7 @@
import shutil
import re
import ordereddict_backport
import py
import pytest
@ -42,7 +43,6 @@
import spack.platforms.test
import spack.repo
import spack.stage
import spack.util.ordereddict
import spack.util.executable
import spack.util.pattern
from spack.dependency import Dependency
@ -603,7 +603,7 @@ def __init__(self, name, dependencies, dependency_types, conditions=None,
versions=None):
self.name = name
self.spec = None
self.dependencies = spack.util.ordereddict.OrderedDict()
self.dependencies = ordereddict_backport.OrderedDict()
assert len(dependencies) == len(dependency_types)
for dep, dtype in zip(dependencies, dependency_types):

View File

@ -31,6 +31,7 @@
default unorderd dict.
"""
from ordereddict_backport import OrderedDict
from six import string_types, StringIO
import yaml
@ -41,7 +42,6 @@
from llnl.util.tty.color import colorize, clen, cextra
import spack.error
from spack.util.ordereddict import OrderedDict
# Only export load and dump
__all__ = ['load', 'dump', 'SpackYAMLError']