Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
d6d095a8
Unverified
Commit
d6d095a8
authored
5 years ago
by
TZ
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Docs: "spack env" is in the meantime called "spack build-env" (#15233)
parent
b37d7b8e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/spack/docs/packaging_guide.rst
+10
-10
10 additions, 10 deletions
lib/spack/docs/packaging_guide.rst
with
10 additions
and
10 deletions
lib/spack/docs/packaging_guide.rst
+
10
−
10
View file @
d6d095a8
...
@@ -2913,7 +2913,7 @@ discover its dependencies.
...
@@ -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 see the environment that a package will build with, or
if you want to run commands in that environment to test them out, you
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.
below.
^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^
...
@@ -4332,31 +4332,31 @@ directory, install directory, package directory) and others change to
...
@@ -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
core spack locations. For example, ``spack cd --module-dir`` will take you to
the main python source directory of your spack install.
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,
``spack
build-
env`` functions much like the standard unix ``
build-env``
but it takes a spec as an argument. You can use it to see the
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,
environment variables that will be set when a particular build runs,
for example:
for example:
.. code-block:: console
.. 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
This will display the entire environment that will be set when the
``mpileaks@1.1%intel`` build runs.
``mpileaks@1.1%intel`` build runs.
To run commands in a package's build environment, you can simply
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
.. code-block:: console
$ spack cd mpileaks@1.1%intel
$ 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
This will cd to the build directory and then run ``configure`` in the
package's build environment.
package's build environment.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment