summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTZ <tz-rrze@users.noreply.github.com>2020-02-27 09:13:09 +0100
committerGitHub <noreply@github.com>2020-02-27 09:13:09 +0100
commitd6d095a868dc3140a7ec166524ce68176c3c366c (patch)
tree4cfcc06f2baa8c5ebbbb3ebf84310ea98a9b48ed /lib
parentb37d7b8ed7012109efb9af60de5f9f77932baac9 (diff)
downloadspack-d6d095a868dc3140a7ec166524ce68176c3c366c.tar.gz
spack-d6d095a868dc3140a7ec166524ce68176c3c366c.tar.bz2
spack-d6d095a868dc3140a7ec166524ce68176c3c366c.tar.xz
spack-d6d095a868dc3140a7ec166524ce68176c3c366c.zip
Docs: "spack env" is in the meantime called "spack build-env" (#15233)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/packaging_guide.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index 41d74fcc74..3c588c240b 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -2913,7 +2913,7 @@ discover its dependencies.
If you want to see the environment that a package will build with, or
if you want to run commands in that environment to test them out, you
-can use the :ref:`cmd-spack-env` command, documented
+can use the :ref:`cmd-spack-build-env` command, documented
below.
^^^^^^^^^^^^^^^^^^^^^
@@ -4332,31 +4332,31 @@ directory, install directory, package directory) and others change to
core spack locations. For example, ``spack cd --module-dir`` will take you to
the main python source directory of your spack install.
-.. _cmd-spack-env:
+.. _cmd-spack-build-env:
-^^^^^^^^^^^^^
-``spack env``
-^^^^^^^^^^^^^
+^^^^^^^^^^^^^^^^^^^
+``spack build-env``
+^^^^^^^^^^^^^^^^^^^
-``spack env`` functions much like the standard unix ``env`` command,
-but it takes a spec as an argument. You can use it to see the
+``spack build-env`` functions much like the standard unix ``build-env``
+command, but it takes a spec as an argument. You can use it to see the
environment variables that will be set when a particular build runs,
for example:
.. code-block:: console
- $ spack env mpileaks@1.1%intel
+ $ spack build-env mpileaks@1.1%intel
This will display the entire environment that will be set when the
``mpileaks@1.1%intel`` build runs.
To run commands in a package's build environment, you can simply
-provide them after the spec argument to ``spack env``:
+provide them after the spec argument to ``spack build-env``:
.. code-block:: console
$ spack cd mpileaks@1.1%intel
- $ spack env mpileaks@1.1%intel ./configure
+ $ spack build-env mpileaks@1.1%intel ./configure
This will cd to the build directory and then run ``configure`` in the
package's build environment.