Skip to content

Follow up PR to update of show_duplicate_packages.py #1626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions configs/sites/tier1/aws-pcluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ spack env activate -p .
# compilers: [%intel']

spack concretize 2>&1 | tee log.concretize.001
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d log.concretize.001
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install -j 12 --verbose 2>&1 | tee log.install.001
spack module lmod refresh
spack stack setup-meta-modules
Expand Down Expand Up @@ -434,7 +434,7 @@ and remove entries for meson, ninja, hdf5, cmake and remove the external
9. Concretize and install
```
spack concretize 2>&1 | tee log.concretize.unified-env.001
./util/show_duplicate_packages.py -d log.concretize.unified-env.001
./util/show_duplicate_packages.py
spack install --verbose 2>&1 | tee log.install.unified-env.001
spack module lmod refresh
spack stack setup-meta-modules
Expand Down
4 changes: 2 additions & 2 deletions configs/sites/tier2/aws-rocky8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ spack config add "packages:ewok-env:variants:+mysql"

# Concretize and install
spack concretize 2>&1 | tee log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d -c log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install --fail-fast -j 12 2>&1 | tee log.install

# Install modules
Expand Down Expand Up @@ -384,7 +384,7 @@ spack config add "packages:all:compiler:[[email protected], [email protected]]"


spack concretize 2>&1 | tee log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install -j 12 --verbose 2>&1 | tee log.install
spack module lmod refresh
spack stack setup-meta-modules
Expand Down
4 changes: 2 additions & 2 deletions configs/sites/tier2/aws-ubuntu2404/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ spack config add "packages:ewok-env:variants:+mysql"

# Concretize and install
spack concretize 2>&1 | tee log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d -c log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install --fail-fast -j 12 2>&1 | tee log.install

# Install modules
Expand Down Expand Up @@ -307,7 +307,7 @@ spack config add "packages:all:compiler:[[email protected], [email protected]]"
spack config add "packages:gmake:buildable:False"

spack concretize 2>&1 | tee log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install --fail-fast -j 12 2>&1 | tee log.install
spack module lmod refresh
spack stack setup-meta-modules
Expand Down
2 changes: 1 addition & 1 deletion configs/sites/tier2/ubuntu2404-nvhpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ spack stack create env --site ubuntu2404-nvhpc --template jedi-mpas-nvidia-dev -
cd envs/nvidia-env/
spack env activate -p .
spack concretize 2>&1 | tee log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install --verbose --fail-fast 2>&1 | tee log.install
spack module lmod refresh
spack stack setup-meta-modules
Expand Down
6 changes: 3 additions & 3 deletions doc/source/NewSiteConfigs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ See the :ref:`documentation <Duplicate_Checker>` for usage information including
.. code-block:: console

spack concretize 2>&1 | tee log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d [-c] log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install [--verbose] [--fail-fast] 2>&1 | tee log.install

11. Create lmod module files
Expand Down Expand Up @@ -620,7 +620,7 @@ See the :ref:`documentation <Duplicate_Checker>` for usage information including
.. code-block:: console

spack concretize 2>&1 | tee log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d [-c] log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install [--verbose] [--fail-fast] 2>&1 | tee log.install

12. Create tcl module files (replace ``tcl`` with ``lmod`` if you have manually installed lmod)
Expand Down Expand Up @@ -808,7 +808,7 @@ concretizer log must be inspected to ensure that all packages being built are bu
.. code-block:: console

spack concretize 2>&1 | tee log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d [-c] log.concretize
${SPACK_STACK_DIR}/util/show_duplicate_packages.py
spack install [--verbose] [--fail-fast] 2>&1 | tee log.install

13. Create tcl module files (replace ``tcl`` with ``lmod`` if you have manually installed lmod)
Expand Down
2 changes: 1 addition & 1 deletion doc/source/PreConfiguredSites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ The following instructions apply to the basic environments (``unified-dev``, ``s
emacs site/*.yaml

# Process/concretize the specs; optionally check for duplicate packages
spack concretize | ${SPACK_STACK_DIR}/util/show_duplicate_packages.py -d [-c] log.concretize
spack concretize | ${SPACK_STACK_DIR}/util/show_duplicate_packages.py

# Optional step for systems with a pre-configured spack mirror, see below.

Expand Down
2 changes: 1 addition & 1 deletion util/nrl/batch_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ for compiler in "${SPACK_STACK_BATCH_COMPILERS[@]}"; do
fi

# Check for duplicate packages
./util/show_duplicate_packages.py -i crtm -i crtm-fix -i esmf -i mapl -d log.concretize.${env_name}.001
./util/show_duplicate_packages.py -i crtm -i crtm-fix -i esmf -i mapl

# Update local source cache if requested
if [[ "${update_source_cache}" == "true"* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion util/weekly_build/03_SetupEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for compiler in $COMPILERS; do
spack config add "config:install_tree:padded_length:${PADDED_LENGTH:-200}"
# Check for duplicates and fail before doing the "real" concretization:
spack_wrapper log.concretize concretize --fresh
${SPACK_STACK_DIR:?}/util/show_duplicate_packages.py log.concretize -d -i crtm-fix -i crtm -i esmf -i mapl
${SPACK_STACK_DIR:?}/util/show_duplicate_packages.py -i crtm-fix -i crtm -i esmf -i mapl
# The following is not working at the moment, for seemingly a couple reasons. Therefore packages with test-only deps cannot be tested.
# spack concretize --force --fresh --test all | tee log.concretize_test
done
Expand Down