Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
import os
import sys

import spack.llnl.util.tty as tty
try:
import spack.llnl.util.tty as tty
except ImportError:
import spack.util.tty as tty
import spack.main

spec = importlib.util.spec_from_file_location(
Expand Down
9 changes: 6 additions & 3 deletions manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@

import os

import spack.llnl.util.tty as tty
try:
import spack.llnl.util.tty as tty
except ImportError:
import spack.util.tty as tty
import spack.util.spack_yaml as syaml

try:
import spack.util.filesystem as fs
except ImportError:
import spack.llnl.util.filesystem as fs
except ImportError:
import spack.util.filesystem as fs


_default_config = """
Expand Down
6 changes: 5 additions & 1 deletion manager/manager_cmds/develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
import shutil

import spack.cmd
import spack.llnl.util.tty as tty

try:
import spack.llnl.util.tty as tty
except ImportError:
import spack.util.tty as tty
import spack.util.executable
from spack.cmd.develop import develop as s_develop
from spack.cmd.develop import setup_parser as s_setup_parser
Expand Down
7 changes: 5 additions & 2 deletions manager/manager_cmds/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
import spack.extensions

try:
import spack.llnl.util.filesystem as fs
except ImportError:
import spack.util.filesystem as fs
try:
import spack.llnl.util.tty as tty
except ImportError:
import spack.llnl.util.filesystem as fs
import spack.llnl.util.tty as tty
import spack.util.tty as tty
import spack.main
import spack.solver.asp
import spack.spec
Expand Down
6 changes: 5 additions & 1 deletion manager/manager_cmds/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
import spack
import spack.config
import spack.environment as ev
import spack.llnl.util.tty as tty

try:
import spack.llnl.util.tty as tty
except ImportError:
import spack.util.tty as tty
import spack.util.spack_yaml as syaml
from spack.detection.common import _pkg_config_dict
from spack.extensions.manager.environment_utils import SpackManagerEnvironmentManifest
Expand Down
5 changes: 4 additions & 1 deletion manager/manager_cmds/include.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
import os
import sys

import spack.llnl.util.tty as tty
try:
import spack.llnl.util.tty as tty
except ImportError:
import spack.util.tty as tty

from .. import projects
from .find_machine import find_machine, machine_defined
Expand Down
6 changes: 5 additions & 1 deletion manager/manager_cmds/lock_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
import sys

import spack.environment as ev
import spack.llnl.util.tty as tty

try:
import spack.llnl.util.tty as tty
except ImportError:
import spack.util.tty as tty
from spack.spec import Spec

command_name = "lock-diff"
Expand Down
7 changes: 5 additions & 2 deletions manager/manager_cmds/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
import spack.paths

try:
from spack.llnl.util.filesystem import working_dir
except ImportError:
from spack.util.filesystem import working_dir
try:
import spack.llnl.util.tty as tty
except ImportError:
from spack.llnl.util.filesystem import working_dir
import spack.llnl.util.tty as tty
import spack.util.tty as tty
from spack.util.executable import Executable

"""
Expand Down
6 changes: 5 additions & 1 deletion manager/manager_cmds/pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
import os

import spack.cmd
import spack.llnl.util.tty as tty

try:
import spack.llnl.util.tty as tty
except ImportError:
import spack.util.tty as tty
import spack.main
import spack.traverse as traverse
import spack.util.executable
Expand Down
4 changes: 2 additions & 2 deletions manager/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import os

try:
import spack.util.lang as lang
except ImportError:
import spack.llnl.util.lang as lang
except ImportError:
import spack.util.lang as lang
from . import config_yaml
from .manager_utils import canonicalize_path

Expand Down
Loading