summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-09-25 10:05:11 +0200
committerGitHub <noreply@github.com>2024-09-25 10:05:11 +0200
commitf01dbe2c354f4cadd642e958a9cdfd380f4bdc05 (patch)
treefb2e89e95db403935a92809a21c63dcb2da6d5f3 /lib
parenta474034023b177abcc9519dc14fd8da19dc09f39 (diff)
downloadspack-f01dbe2c354f4cadd642e958a9cdfd380f4bdc05.tar.gz
spack-f01dbe2c354f4cadd642e958a9cdfd380f4bdc05.tar.bz2
spack-f01dbe2c354f4cadd642e958a9cdfd380f4bdc05.tar.xz
spack-f01dbe2c354f4cadd642e958a9cdfd380f4bdc05.zip
Remove a few redundant imports (#46512)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/info.py1
-rw-r--r--lib/spack/spack/environment/environment.py1
-rw-r--r--lib/spack/spack/modules/common.py1
-rw-r--r--lib/spack/spack/test/architecture.py1
-rw-r--r--lib/spack/spack/variant.py1
5 files changed, 0 insertions, 5 deletions
diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py
index a7cdf608a2..890b32b300 100644
--- a/lib/spack/spack/cmd/info.py
+++ b/lib/spack/spack/cmd/info.py
@@ -17,7 +17,6 @@ import spack.install_test
import spack.repo
import spack.spec
import spack.variant
-import spack.version
from spack.cmd.common import arguments
from spack.package_base import preferred_version
diff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py
index 900fd3f072..e1a35b2e9e 100644
--- a/lib/spack/spack/environment/environment.py
+++ b/lib/spack/spack/environment/environment.py
@@ -42,7 +42,6 @@ import spack.spec
import spack.spec_list
import spack.store
import spack.user_environment as uenv
-import spack.util.cpus
import spack.util.environment
import spack.util.hash
import spack.util.lock as lk
diff --git a/lib/spack/spack/modules/common.py b/lib/spack/spack/modules/common.py
index b6972aba45..7875ab5561 100644
--- a/lib/spack/spack/modules/common.py
+++ b/lib/spack/spack/modules/common.py
@@ -48,7 +48,6 @@ import spack.environment
import spack.error
import spack.paths
import spack.projections as proj
-import spack.repo
import spack.schema.environment
import spack.spec
import spack.store
diff --git a/lib/spack/spack/test/architecture.py b/lib/spack/spack/test/architecture.py
index 3d489a22cc..a029aa4790 100644
--- a/lib/spack/spack/test/architecture.py
+++ b/lib/spack/spack/test/architecture.py
@@ -8,7 +8,6 @@ import pytest
import archspec.cpu
-import spack.compilers
import spack.concretize
import spack.operating_systems
import spack.platforms
diff --git a/lib/spack/spack/variant.py b/lib/spack/spack/variant.py
index e0ef7c0e30..0756841a63 100644
--- a/lib/spack/spack/variant.py
+++ b/lib/spack/spack/variant.py
@@ -19,7 +19,6 @@ import llnl.util.tty.color
import spack.error as error
import spack.parser
-import spack.repo
import spack.spec
#: These are variant names used by Spack internally; packages can't use them