diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 91201ea..de3adeb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -57,10 +57,13 @@ jobs: exit 1 fi # Merge all these results together + module reset + module load EESSI-extend # Loads EasyBuild and we need that for our merge scripts python scripts/merge_data_files.py out.yaml eessi*.yaml mv out.yaml docs/data/eessi_software_metadata.yaml # Also do RISC-V repository + module --force purge rm eessi*.yaml # Need to set environment variables to load EESSI module for RISC-V ( @@ -76,6 +79,9 @@ jobs: echo $MODULEPATH python scripts/generate_data_files.py --eessi-version 2025.06-001 --repository "dev.eessi.io/riscv" ) + # Merge all these results together + module reset + module load EESSI-extend # Loads EasyBuild and we need that for our merge scripts python scripts/merge_data_files.py out_riscv.yaml eessi*.yaml mv out_riscv.yaml docs/data/eessi_software_metadata-riscv.yaml diff --git a/.github/workflows/prs.yml b/.github/workflows/prs.yml index 229c061..de52a31 100644 --- a/.github/workflows/prs.yml +++ b/.github/workflows/prs.yml @@ -25,7 +25,6 @@ jobs: - name: Generate API data run: | echo "Generating data files..." - # Only do 2023.06 for EB 5 since this is just a test ( module --force purge @@ -42,6 +41,8 @@ jobs: ) & # Merge all these results together wait + module reset + module load EESSI-extend # Loads EasyBuild and we need that for our merge scripts python scripts/merge_data_files.py out.yaml eessi*.yaml mv out.yaml docs/data/eessi_software_metadata.yaml @@ -62,6 +63,8 @@ jobs: echo $MODULEPATH python scripts/generate_data_files.py --eessi-version 2025.06-001 --repository "dev.eessi.io/riscv" ) + module reset + module load EESSI-extend # Loads EasyBuild and we need that for our merge scripts python scripts/merge_data_files.py out_riscv.yaml eessi*.yaml mv out_riscv.yaml docs/data/eessi_software_metadata-riscv.yaml diff --git a/scripts/calculate_hashes.py b/scripts/calculate_hashes.py index 1955e55..578e30d 100644 --- a/scripts/calculate_hashes.py +++ b/scripts/calculate_hashes.py @@ -2,6 +2,9 @@ import json import yaml import hashlib +# EB 5.4.0 brought in a change that required the import below +import easybuild.easyblocks.python + # Directory to scan directory = "./" # Change to your target directory diff --git a/scripts/merge_data_files.py b/scripts/merge_data_files.py index a0b4326..c5326ec 100644 --- a/scripts/merge_data_files.py +++ b/scripts/merge_data_files.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 import sys import yaml +# EB 5.4.0 brought in a change that required the import below +import easybuild.easyblocks.python from datetime import datetime, timezone diff --git a/scripts/process_eessi_software_metadata.py b/scripts/process_eessi_software_metadata.py index a413188..d64323a 100644 --- a/scripts/process_eessi_software_metadata.py +++ b/scripts/process_eessi_software_metadata.py @@ -6,6 +6,8 @@ import yaml import json import subprocess +# EB 5.4.0 brought in a change that required the import below +import easybuild.easyblocks.python ARCHITECTURES = [ "aarch64/generic",