externals: move spack.util.ordereddict to external/ordereddict_backport
This commit is contained in:
parent
508bbf407b
commit
137456fbf3
5
lib/spack/external/_pytest/fixtures.py
vendored
5
lib/spack/external/_pytest/fixtures.py
vendored
@ -21,10 +21,7 @@
|
|||||||
from _pytest.outcomes import fail, TEST_OUTCOME
|
from _pytest.outcomes import fail, TEST_OUTCOME
|
||||||
|
|
||||||
|
|
||||||
if sys.version_info[:2] == (2, 6):
|
from ordereddict_backport import OrderedDict
|
||||||
from ordereddict import OrderedDict
|
|
||||||
else:
|
|
||||||
from collections import OrderedDict # nopyqver
|
|
||||||
|
|
||||||
|
|
||||||
def pytest_sessionstart(session):
|
def pytest_sessionstart(session):
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from six import string_types
|
from six import string_types
|
||||||
from six import iteritems
|
from six import iteritems
|
||||||
|
from ordereddict_backport import OrderedDict
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
from yaml.error import MarkedYAMLError
|
from yaml.error import MarkedYAMLError
|
||||||
@ -69,7 +70,6 @@
|
|||||||
import spack.architecture
|
import spack.architecture
|
||||||
import spack.schema
|
import spack.schema
|
||||||
from spack.error import SpackError
|
from spack.error import SpackError
|
||||||
from spack.util.ordereddict import OrderedDict
|
|
||||||
|
|
||||||
# Hacked yaml for configuration files preserves line numbers.
|
# Hacked yaml for configuration files preserves line numbers.
|
||||||
import spack.util.spack_yaml as syaml
|
import spack.util.spack_yaml as syaml
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
import shutil
|
import shutil
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
import ordereddict_backport
|
||||||
import py
|
import py
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@ -42,7 +43,6 @@
|
|||||||
import spack.platforms.test
|
import spack.platforms.test
|
||||||
import spack.repo
|
import spack.repo
|
||||||
import spack.stage
|
import spack.stage
|
||||||
import spack.util.ordereddict
|
|
||||||
import spack.util.executable
|
import spack.util.executable
|
||||||
import spack.util.pattern
|
import spack.util.pattern
|
||||||
from spack.dependency import Dependency
|
from spack.dependency import Dependency
|
||||||
@ -603,7 +603,7 @@ def __init__(self, name, dependencies, dependency_types, conditions=None,
|
|||||||
versions=None):
|
versions=None):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.spec = None
|
self.spec = None
|
||||||
self.dependencies = spack.util.ordereddict.OrderedDict()
|
self.dependencies = ordereddict_backport.OrderedDict()
|
||||||
|
|
||||||
assert len(dependencies) == len(dependency_types)
|
assert len(dependencies) == len(dependency_types)
|
||||||
for dep, dtype in zip(dependencies, dependency_types):
|
for dep, dtype in zip(dependencies, dependency_types):
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
default unorderd dict.
|
default unorderd dict.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
from ordereddict_backport import OrderedDict
|
||||||
from six import string_types, StringIO
|
from six import string_types, StringIO
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
@ -41,7 +42,6 @@
|
|||||||
from llnl.util.tty.color import colorize, clen, cextra
|
from llnl.util.tty.color import colorize, clen, cextra
|
||||||
|
|
||||||
import spack.error
|
import spack.error
|
||||||
from spack.util.ordereddict import OrderedDict
|
|
||||||
|
|
||||||
# Only export load and dump
|
# Only export load and dump
|
||||||
__all__ = ['load', 'dump', 'SpackYAMLError']
|
__all__ = ['load', 'dump', 'SpackYAMLError']
|
||||||
|
Loading…
Reference in New Issue
Block a user