@@ -484,19 +484,15 @@ jobs:
484484 no_output_timeout : 30m
485485 command : |
486486
487- # Check if we need to have the XSPEC models available for the notebooks that are due to be built
488- [ "$RUN_XSPEC" = "true" ] || exit 0
489-
490- echo "Attempting to restore the XSPEC-models cache"
491- circleci-agent cache restore --key "v2026-jan-xspec-models-"
487+ micromamba create -p ~/user-envs/xspec-mod-fetch-env -y -c conda-forge python=3.12 rsync
492488
493489 # Make sure that jq is installed
494- micromamba -p ~/user-envs/rsync -env install -y -c conda-forge jq
490+ micromamba -p ~/user-envs/xspec-mod-fetch -env install -y -c conda-forge jq
495491
496492
497- CONDA_OUTPUT=$(micromamba -p ~/user-envs/rsync -env install -c https://heasarc.gsfc.nasa.gov/FTP/software/conda/ --dry-run --json xspec-data=$XSPEC_DATA_VER 2>/dev/null)
493+ CONDA_OUTPUT=$(micromamba -p ~/user-envs/xspec-mod-fetch -env install -c https://heasarc.gsfc.nasa.gov/FTP/software/conda/ --dry-run --json xspec-data=$XSPEC_DATA_VER 2>/dev/null)
498494
499- XSPEC_DATA_LINK=$(echo "$CONDA_OUTPUT" | micromamba -p ~/user-envs/rsync -env run jq -r '.actions.LINK[] | select(.name == "xspec-data") | .url')
495+ XSPEC_DATA_LINK=$(echo "$CONDA_OUTPUT" | micromamba -p ~/user-envs/xspec-mod-fetch -env run jq -r '.actions.LINK[] | select(.name == "xspec-data") | .url')
500496
501497 # Show the XSPEC data version and link
502498 echo $XSPEC_DATA_VER
@@ -522,13 +518,13 @@ jobs:
522518 wget $XSPEC_DATA_LINK -O xspec-data.zip
523519
524520 # Install unzip, as the *.conda file we just downloaded is a zip archive
525- micromamba -p ~/user-envs/rsync -env install -y -c conda-forge unzip zstd
521+ micromamba -p ~/user-envs/xspec-mod-fetch -env install -y -c conda-forge unzip zstd
526522 # Unzip the archive
527- micromamba -p ~/user-envs/rsync -env run unzip xspec-data.zip
523+ micromamba -p ~/user-envs/xspec-mod-fetch -env run unzip xspec-data.zip
528524
529525 # Untar and decompress the part of the *.conda package file that contains the package contents, as
530526 # opposed to the metadata.
531- micromamba -p ~/user-envs/rsync -env run tar --use-compress-program=unzstd -xvf pkg-xspec-data-*.tar.zst
527+ micromamba -p ~/user-envs/xspec-mod-fetch -env run tar --use-compress-program=unzstd -xvf pkg-xspec-data-*.tar.zst
532528
533529 # Move the extracted files into the xspec-data directory, going up a level
534530 # because we cd-ed into the temporary working directory
0 commit comments