summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Josef Scheibel <scheibel1@llnl.gov>2018-05-18 15:22:55 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-11-09 00:31:24 -0800
commite6c6ab64b890cc6039c3a551520738aeb5d48081 (patch)
treed2959691fc023045110eefd319b4b50ae96e1e59 /lib
parentbb8da72f0c735d15f0f05580688a1e3fce73d554 (diff)
downloadspack-e6c6ab64b890cc6039c3a551520738aeb5d48081.tar.gz
spack-e6c6ab64b890cc6039c3a551520738aeb5d48081.tar.bz2
spack-e6c6ab64b890cc6039c3a551520738aeb5d48081.tar.xz
spack-e6c6ab64b890cc6039c3a551520738aeb5d48081.zip
env: rename 'spack env' command to 'spack build-env'
Diffstat (limited to 'lib')
-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', [