Skip to content

Commit df2c3ae

Browse files
dependabot[bot]alalazoalecbcs
authored
build(deps): bump docutils from 0.21.2 to 0.23 (#541)
* ISC26: update the basics section (#535) * Extend gitignore * basics: split "Installing Packages" into subsections * Add a paragraph explaining the overall spack architecture This is so that audience is already aware of where we are headin into, when we introduce the various pieces (hash, store, etc.). * Update releases/v1.1 -> releases/v1.2 * Move high-level highlights to introduction * Minor fixes * Shorten and improve "Installing Packages" * Demote Compiler flags * Reorder "Spec Syntax" subsections * Move "Querying Installations" into its own section Also, consolidate all the use of `spack find` * Add intro to "Spec Syntax" * Update output * Fix "Installing Packages" * Fix "Transitive Dependencies" * Fix "Transitive Dependencies" * Fix "Virtual Dependencies" * First draft * Add missing output * Polish the section * Polish the section * Temporarily disable output generation * Minor style fixes * Minor style fixes * Address review * Don't use "realistic" * Remove old output files after merge with main Signed-off-by: Alec Scott <alec@llnl.gov> --------- Signed-off-by: Alec Scott <alec@llnl.gov> Co-authored-by: Alec Scott <alec@llnl.gov> * ISC26: update the environments section (#542) * Extend gitignore * basics: split "Installing Packages" into subsections * Add a paragraph explaining the overall spack architecture This is so that audience is already aware of where we are headin into, when we introduce the various pieces (hash, store, etc.). * Update releases/v1.1 -> releases/v1.2 * Move high-level highlights to introduction * Minor fixes * Shorten and improve "Installing Packages" * Demote Compiler flags * Reorder "Spec Syntax" subsections * Move "Querying Installations" into its own section Also, consolidate all the use of `spack find` * Add intro to "Spec Syntax" * Update output * Fix "Installing Packages" * Fix "Transitive Dependencies" * Fix "Transitive Dependencies" * Fix "Virtual Dependencies" * First draft * Add missing output * Polish the section * Polish the section * Temporarily disable output generation * Mechanical update of the environment section * Minor fixes * Don't use a non-matching temporary environment * Shorten introduction, but maintain the same content * Improved "Working with environments" section * Improved "Working with environments" section * Added an "Environment on disk" section This section introduces manifest and lockfile early. * Added an "Environment on disk" section This section introduces manifest and lockfile early. * Added an "Environment on disk" section This section introduces manifest and lockfile early. * Added a "Configuring environments" section * Trimmed redundant section * First complete draft of the "Environments" tutorial * Minor fixes * Minor fixes * Less notes in the initial section --------- Co-authored-by: Alec Scott <alec@llnl.gov> * ISC26: update the stacks section (#544) * Extend gitignore * basics: split "Installing Packages" into subsections * Add a paragraph explaining the overall spack architecture This is so that audience is already aware of where we are headin into, when we introduce the various pieces (hash, store, etc.). * Update releases/v1.1 -> releases/v1.2 * Move high-level highlights to introduction * Minor fixes * Shorten and improve "Installing Packages" * Demote Compiler flags * Reorder "Spec Syntax" subsections * Move "Querying Installations" into its own section Also, consolidate all the use of `spack find` * Add intro to "Spec Syntax" * Update output * Fix "Installing Packages" * Fix "Transitive Dependencies" * Fix "Transitive Dependencies" * Fix "Virtual Dependencies" * First draft * Add missing output * Polish the section * Polish the section * Temporarily disable output generation * Mechanical update of the environment section * Minor fixes * Don't use a non-matching temporary environment * Shorten introduction, but maintain the same content * Improved "Working with environments" section * Improved "Working with environments" section * Added an "Environment on disk" section This section introduces manifest and lockfile early. * Added an "Environment on disk" section This section introduces manifest and lockfile early. * Added an "Environment on disk" section This section introduces manifest and lockfile early. * Added a "Configuring environments" section * Trimmed redundant section * First complete draft of the "Environments" tutorial * Minor fixes * Minor fixes * Less notes in the initial section * Update Stacks to Ubuntu 26.04 * Add spec groups * Fix last nits * Fix last nits --------- Co-authored-by: Alec Scott <alec@llnl.gov> * ISC26: update the packaging section (#547) * Extend gitignore * basics: split "Installing Packages" into subsections * Add a paragraph explaining the overall spack architecture This is so that audience is already aware of where we are headin into, when we introduce the various pieces (hash, store, etc.). * Update releases/v1.1 -> releases/v1.2 * Move high-level highlights to introduction * Minor fixes * Shorten and improve "Installing Packages" * Demote Compiler flags * Reorder "Spec Syntax" subsections * Move "Querying Installations" into its own section Also, consolidate all the use of `spack find` * Add intro to "Spec Syntax" * Update output * Fix "Installing Packages" * Fix "Transitive Dependencies" * Fix "Transitive Dependencies" * Fix "Virtual Dependencies" * First draft * Add missing output * Polish the section * Polish the section * Temporarily disable output generation * Minor style fixes * Minor style fixes * Address review * Don't use "realistic" * ISC26: update the Packaging section --------- Co-authored-by: Alec Scott <alec@llnl.gov> * ISC26: update index and setup header (#548) * Extend gitignore * basics: split "Installing Packages" into subsections * Add a paragraph explaining the overall spack architecture This is so that audience is already aware of where we are headin into, when we introduce the various pieces (hash, store, etc.). * Update releases/v1.1 -> releases/v1.2 * Move high-level highlights to introduction * Minor fixes * Shorten and improve "Installing Packages" * Demote Compiler flags * Reorder "Spec Syntax" subsections * Move "Querying Installations" into its own section Also, consolidate all the use of `spack find` * Add intro to "Spec Syntax" * Update output * Fix "Installing Packages" * Fix "Transitive Dependencies" * Fix "Transitive Dependencies" * Fix "Virtual Dependencies" * First draft * Add missing output * Polish the section * Polish the section * Temporarily disable output generation * Minor style fixes * Minor style fixes * Address review * Don't use "realistic" * ISC26: update index and setup --------- Co-authored-by: Alec Scott <alec@llnl.gov> * Re-enable Output Generation CI/CD on PRs (#543) I've tested the CI in this PR fully and rebased off of the latest commits to main. It adds back the CI/CD check to ensure that future edits must pass the checks before being able to be merged so that we don't accidentally break the tutorial this weekend before giving it on Monday. --------- Signed-off-by: Alec Scott <alec@llnl.gov> Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com> * build(deps): bump actions/checkout from 4.1.7 to 7.0.0 (#551) Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 7.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4.1.7...9c091bb) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump pytest from 9.1.0 to 9.1.1 (#558) Bumps [pytest](https://github.com/pytest-dev/pytest) from 9.1.0 to 9.1.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@9.1.0...9.1.1) --- updated-dependencies: - dependency-name: pytest dependency-version: 9.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump actions/download-artifact from 4.1.8 to 8.0.1 (#556) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.8 to 8.0.1. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@fa0a91b...3e5f45b) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: 8.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump docker/setup-qemu-action from 3.2.0 to 4.1.0 (#554) Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.2.0 to 4.1.0. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](docker/setup-qemu-action@49b3bc8...0611638) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-version: 4.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump docker/build-push-action from 6.9.0 to 7.2.0 (#553) Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.9.0 to 7.2.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@4f58ea7...f9f3042) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-version: 7.2.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump docker/login-action from 3.3.0 to 4.2.0 (#552) Bumps [docker/login-action](https://github.com/docker/login-action) from 3.3.0 to 4.2.0. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@9780b0c...650006c) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: 4.2.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump ruamel-yaml from 0.18.15 to 0.19.1 (#555) Bumps ruamel-yaml from 0.18.15 to 0.19.1. --- updated-dependencies: - dependency-name: ruamel-yaml dependency-version: 0.19.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ISC26: small typo and grammar fixes in env and stacks sections (#559) Signed-off-by: Alec Scott <alec@llnl.gov> * build(deps): bump isort from 7.0.0 to 8.0.1 (#557) Bumps [isort](https://github.com/PyCQA/isort) from 7.0.0 to 8.0.1. - [Release notes](https://github.com/PyCQA/isort/releases) - [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md) - [Commits](PyCQA/isort@7.0.0...8.0.1) --- updated-dependencies: - dependency-name: isort dependency-version: 8.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump docutils from 0.21.2 to 0.23 Bumps [docutils](https://github.com/rtfd/recommonmark) from 0.21.2 to 0.23. - [Changelog](https://github.com/readthedocs/recommonmark/blob/master/CHANGELOG.md) - [Commits](https://github.com/rtfd/recommonmark/commits) --- updated-dependencies: - dependency-name: docutils dependency-version: '0.23' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: Alec Scott <alec@llnl.gov> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com> Co-authored-by: Alec Scott <alec@llnl.gov> Co-authored-by: Alec Scott <hi@alecbcs.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 3e836c9 commit df2c3ae

156 files changed

Lines changed: 8821 additions & 18131 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
style: ${{ steps.filter.outputs.style }}
2626

2727
steps:
28-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # @v2
28+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # @v2
2929
if: ${{ github.event_name == 'push' }}
3030
with:
3131
fetch-depth: 0
@@ -51,10 +51,8 @@ jobs:
5151
uses: ./.github/workflows/container.yml
5252

5353
outputs:
54-
# Output regeneration temporarily disabled — remove the `false` line below to re-enable.
5554
if: |
56-
false
57-
&& !cancelled()
55+
!cancelled()
5856
&& contains(needs.*.result, 'success')
5957
&& !contains(needs.*.result, 'failure')
6058
&& (needs.changes.outputs.outputs == 'true'

.github/workflows/container.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111

1212
steps:
1313
- name: Set up QEMU
14-
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf
14+
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3
1515

1616
- name: Set up Docker Buildx
1717
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5
1818

1919
- name: Login to GitHub Container Registry
2020
if: github.event_name != 'pull_request'
21-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
21+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee
2222
with:
2323
registry: ghcr.io
2424
username: ${{ github.actor }}
@@ -36,7 +36,7 @@ jobs:
3636
type=raw,value={{tag}}
3737
3838
- name: Build & Push
39-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
39+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf
4040
env:
4141
DOCKER_BUILD_SUMMARY: false
4242
DOCKER_BUILD_RECORD_UPLOAD: false

.github/workflows/outputs.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ jobs:
1616
steps:
1717
- name: Checkout (Push)
1818
if: github.event_name != 'pull_request'
19-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
19+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
2020
with:
2121
ref: ${{ github.head_ref }}
2222

2323
- name: Checkout (PR)
2424
if: github.event_name == 'pull_request'
25-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
25+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
2626
with:
2727
ref: ${{ github.event.pull_request.head.ref }}
2828
repository: ${{ github.event.pull_request.head.repo.full_name }}
2929

3030
- name: Download container from artifact if PR
3131
if: github.event_name == 'pull_request' && inputs.with_pr_container
32-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
32+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
3333
with:
3434
name: tutorial-container
3535
path: /tmp
@@ -43,19 +43,19 @@ jobs:
4343
- name: Re-generate outputs from tutorial scripts
4444
run: |
4545
chmod -R a+w outputs
46-
mkdir spack-home && sudo chown -R 1000:1000 spack-home
46+
mkdir spack-home && sudo chmod -R a+rwx spack-home
4747
DOCKER_RUN_OPTS="-e COLUMNS=94 -e COLIFY_SIZE=24x94 -v $(pwd)/spack-home:/home/spack"
4848
make -C outputs -j $(nproc) DOCKER_RUN_OPTS="$DOCKER_RUN_OPTS" container=ghcr.io/spack/tutorial
4949
5050
- name: Show diff of modified files
5151
run: |
5252
git diff HEAD outputs/
5353
54-
- name: Push modified files to branch
55-
if: ( github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork )
56-
run: |
57-
git config user.name "github-actions[bot]"
58-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
59-
git add outputs/
60-
git commit -m "Update generated outputs on behalf of [@${{ github.actor }}]"
61-
git push
54+
# - name: Push modified files to branch
55+
# if: ( github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork )
56+
# run: |
57+
# git config user.name "github-actions[bot]"
58+
# git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
59+
# git add outputs/
60+
# git commit -m "Update generated outputs on behalf of [@${{ github.actor }}]"
61+
# git push

.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
10+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
1111

1212
- name: Set up Python
1313
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ __pycache__
1111
/view
1212
/.spack-env
1313
/.venv
14+
.idea
15+
CLAUDE.md

_static/images/stacks-unify.svg

Lines changed: 1 addition & 1 deletion
Loading

common/setup.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
If you have not done the prior sections, you'll need to start the docker image::
44

5-
docker run -it ghcr.io/spack/tutorial:sc25
5+
docker run -it ghcr.io/spack/tutorial:isc26
66

77
and then set Spack up like this::
88

9-
git clone --depth=2 --branch=releases/v1.1 https://github.com/spack/spack
9+
git clone --depth=2 --branch=releases/v1.2 https://github.com/spack/spack
1010
. spack/share/spack/setup-env.sh
11-
spack repo update builtin --tag v2025.11.0
12-
spack tutorial -y
11+
spack mirror add --unsigned tutorial /mirror
1312
spack bootstrap now
1413
spack compiler find
1514

container/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/spack/tutorial-ubuntu-22.04
1+
FROM ghcr.io/spack/tutorial-ubuntu-26.04
22

33
ENV DEBIAN_FRONTEND=noninteractive
44

@@ -13,12 +13,9 @@ RUN apt-get update -y && \
1313
vim \
1414
rclone
1515

16-
# Remove GCC 12 from container
17-
RUN apt-get remove -y gcc-12
18-
1916
# Download the buildcache
2017
RUN mkdir /mirror
21-
RUN rclone copy :s3:spack-binaries/v2025.11.0/tutorial /mirror
18+
RUN rclone copy :s3:spack-binaries/releases/v2026.06/tutorial /mirror
2219

2320
RUN chmod -R go+r /mirror
2421

index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,26 @@ You can invoke
4949

5050
.. code-block:: console
5151
52-
$ docker pull ghcr.io/spack/tutorial:sc25
53-
$ docker run -it ghcr.io/spack/tutorial:sc25
52+
$ docker pull ghcr.io/spack/tutorial:isc26
53+
$ docker run -it ghcr.io/spack/tutorial:isc26
5454
5555
to start using the container.
5656
You should now be ready to run through our demo scripts:
5757

5858
#. :ref:`basics-tutorial`
5959
#. :ref:`environments-tutorial`
60-
#. :ref:`configs-tutorial`
6160
#. :ref:`packaging-tutorial`
6261
#. :ref:`stacks-tutorial`
6362
#. :ref:`developer-workflows-tutorial`
6463
#. :ref:`binary-cache-tutorial`
65-
#. :ref:`spack-scripting-tutorial`
6664

6765
Other sections from past tutorials are also available, although they may not be kept up-to-date as frequently:
6866

67+
#. :ref:`configs-tutorial`
6968
#. :ref:`modules-tutorial`
7069
#. :ref:`build-systems-tutorial`
7170
#. :ref:`advanced-packaging-tutorial`
71+
#. :ref:`spack-scripting-tutorial`
7272

7373
Full contents:
7474

@@ -84,17 +84,17 @@ Full contents:
8484

8585
tutorial_basics
8686
tutorial_environments
87-
tutorial_configuration
8887
tutorial_packaging
8988
tutorial_stacks
9089
tutorial_developer_workflows
9190
tutorial_binary_cache
92-
tutorial_scripting
9391

9492
.. toctree::
9593
:maxdepth: 3
9694
:caption: Additional sections
9795

96+
tutorial_configuration
9897
tutorial_modules
9998
tutorial_buildsystems
10099
tutorial_advanced_packaging
100+
tutorial_scripting

outputs/basics.sh

Lines changed: 39 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ project="$(dirname "$0")"
99

1010
export SPACK_COLOR=never
1111

12-
# basic installation
12+
# Setting Up Spack
1313
example basics/clone "git clone --depth=2 --branch=$tutorial_branch https://github.com/spack/spack.git ~/spack"
1414
example basics/clone "cd ~/spack"
1515

@@ -21,61 +21,65 @@ spack config add "config:suppress_gpg_warnings:true"
2121

2222
example basics/source-setup ". share/spack/setup-env.sh"
2323

24-
# spack list
24+
spack repo update
25+
26+
# Installing Packages
2527
example basics/list "spack list"
2628
example basics/list-py "spack list 'py-*'"
2729

2830
# spack install
29-
example basics/gmake "spack install gmake"
31+
example --tee basics/gmake "spack install gmake"
3032

3133
example basics/compiler-list "spack compilers"
3234

3335
example basics/mirror "spack mirror add tutorial /mirror"
34-
example basics/mirror "spack buildcache keys --install --trust"
35-
36-
example basics/zlib-clang "spack install zlib-ng %clang"
36+
example basics/mirror "spack buildcache keys --install --trust --yes-to-all"
3737

38+
# The Spec Syntax
3839
example basics/versions-zlib "spack versions zlib-ng"
39-
example basics/zlib-2.0.7 "spack install zlib-ng@2.0.7"
40-
example basics/zlib-gcc-10 "spack install zlib-ng %gcc@10"
40+
example --tee basics/zlib-2.0.7 "spack install zlib-ng@2.0.7"
4141

42-
example basics/zlib-O3 "spack install zlib-ng@2.0.7 cflags=-O3"
43-
44-
example basics/find "spack find"
45-
example basics/find-lf "spack find -lf"
42+
example basics/info-zlib "spack info --no-dependencies --no-versions zlib-ng"
4643

47-
example basics/tcl "spack install tcl"
44+
example --tee basics/zlib-ipo "spack install zlib-ng +ipo"
45+
example --tee basics/zlib-build-type "spack install zlib-ng build_type=Debug"
4846

49-
example basics/tcl-zlib-clang "spack install tcl ^zlib-ng@2.0.7 %clang"
47+
example --tee basics/zlib-clang "spack install zlib-ng %clang"
48+
example --tee basics/zlib-gcc-14 "spack install zlib-ng %gcc@14"
5049

51-
zlib_hash=$(spack find --format "{hash:3}" zlib-ng cflags=-O3)
52-
example basics/tcl-zlib-hash "spack install tcl ^/${zlib_hash}"
50+
example basics/spec-tcl-zlib-clang "spack spec -l tcl ^zlib-ng@2.0.7 %clang"
51+
example --tee basics/tcl-zlib-clang "spack install tcl ^zlib-ng@2.0.7 %clang"
5352

54-
example basics/find-ldf "spack find -ldf"
53+
# Refer to the zlib-ng@2.0.7 %clang build we just installed by its hash
54+
zlib_hash=$(spack find --format "{hash:3}" zlib-ng@2.0.7 %clang)
55+
example basics/spec-tcl-zlib-hash "spack spec tcl ^/${zlib_hash}"
5556

5657
example basics/graph-tcl "spack graph tcl"
5758

59+
example basics/providers-mpi "spack providers mpi"
5860
example basics/hdf5-spec "spack spec hdf5"
59-
example basics/hdf5 "spack install hdf5"
60-
example basics/hdf5-no-mpi "spack install hdf5~mpi"
61-
62-
example basics/hdf5-hl-mpi "spack install hdf5+hl+mpi ^mpich"
63-
64-
example basics/find-ldf-2 "spack find -ldf"
65-
66-
example basics/trilinos "spack install trilinos"
67-
68-
example basics/trilinos-hdf5 "spack install trilinos +hdf5 ^hdf5+hl+mpi ^mpich"
61+
example --tee basics/hdf5 "spack install hdf5"
62+
example --tee basics/hdf5-no-mpi "spack install hdf5~mpi"
6963

70-
example basics/find-d-trilinos "spack find -d trilinos"
71-
72-
example basics/graph-trilinos "spack graph trilinos"
64+
example --tee basics/hdf5-mpich "spack install hdf5 ^mpich"
65+
example basics/spec-hdf5-compilers "spack spec hdf5 %c,cxx=clang %fortran=gcc"
7366

67+
# Querying Installations
68+
example basics/find "spack find"
69+
example basics/find-l "spack find -l"
7470
example basics/find-d-tcl "spack find -d tcl"
71+
example basics/find-dep-mpich "spack find ^mpich"
72+
example basics/find-px "spack find -px"
7573

74+
# A Realistic Example
75+
example --tee basics/trilinos "spack install trilinos"
76+
example --tee basics/trilinos-hdf5 "spack install trilinos +hdf5 ^mpich"
77+
example basics/trilinos-find-mpich "spack find ^mpich"
78+
79+
# Uninstalling Packages
7680
example basics/find-zlib "spack find zlib-ng"
7781

78-
example basics/uninstall-zlib "spack uninstall -y zlib-ng %gcc@10"
82+
example basics/uninstall-zlib "spack uninstall -y zlib-ng %gcc@14"
7983

8084
example basics/find-lf-zlib "spack find -lf zlib-ng"
8185

@@ -88,18 +92,11 @@ example --expect-error basics/uninstall-ambiguous "spack uninstall trilinos"
8892
trilinos_hash="$(spack find --format '{hash:3}' trilinos ^openmpi)"
8993
echo y | example basics/uninstall-specific "spack uninstall /$trilinos_hash"
9094

91-
example basics/find-dep-mpich "spack find ^mpich"
92-
93-
example basics/find-O3 "spack find cflags=-O3"
94-
95-
example basics/find-px "spack find -px"
96-
97-
example basics/compilers "spack compilers"
98-
99-
example basics/install-gcc-12.1.0 "spack install gcc@12"
95+
# Customizing Compilers
96+
example --tee basics/install-gcc-16 "spack install gcc@16"
10097

10198
example basics/compilers-2 "spack compilers"
10299

103-
example basics/spec-zziplib "spack spec zziplib %gcc@12"
100+
example basics/spec-zziplib "spack spec zziplib %gcc@16"
104101

105-
echo y | example basics/compiler-uninstall 'spack uninstall gcc@12'
102+
example basics/compiler-uninstall 'spack uninstall -y gcc@16'

0 commit comments

Comments
 (0)