summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/cmd/build_env.py (renamed from lib/spack/spack/cmd/env.py)10
-rw-r--r--lib/spack/spack/test/cmd/build_env.py (renamed from lib/spack/spack/test/cmd/env.py)2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/spack/spack/cmd/env.py b/lib/spack/spack/cmd/build_env.py
index 94be7f03fb..cb87bbc620 100644
--- a/lib/spack/spack/cmd/env.py
+++ b/lib/spack/spack/cmd/build_env.py
@@ -9,7 +9,7 @@ import argparse
import os
import llnl.util.tty as tty
-import spack.build_environment as build_env
+import spack.build_environment as build_environment
import spack.cmd
import spack.cmd.common.arguments as arguments
@@ -25,9 +25,9 @@ def setup_parser(subparser):
help="specs of package environment to emulate")
-def env(parser, args):
+def build_env(parser, args):
if not args.spec:
- tty.die("spack env requires a spec.")
+ tty.die("spack build-env requires a spec.")
# Specs may have spaces in them, so if they do, require that the
# caller put a '--' between the spec and the command to be
@@ -44,10 +44,10 @@ def env(parser, args):
specs = spack.cmd.parse_specs(spec, concretize=True)
if len(specs) > 1:
- tty.die("spack env only takes one spec.")
+ tty.die("spack build-env only takes one spec.")
spec = specs[0]
- build_env.setup_package(spec.package, args.dirty)
+ build_environment.setup_package(spec.package, args.dirty)
if not cmd:
# If no command act like the "env" command and print out env vars.
diff --git a/lib/spack/spack/test/cmd/env.py b/lib/spack/spack/test/cmd/build_env.py
index 0a1b1714dd..a84d2b8ff5 100644
--- a/lib/spack/spack/test/cmd/env.py
+++ b/lib/spack/spack/test/cmd/build_env.py
@@ -7,7 +7,7 @@ import pytest
from spack.main import SpackCommand, SpackCommandError
-info = SpackCommand('env')
+info = SpackCommand('build-env')
@pytest.mark.parametrize('pkg', [