From f1924f863c5f3469ed464d7df837d002ce236654 Mon Sep 17 00:00:00 2001 From: Abe Coull <85974725+AbeCoull@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:58:08 -0500 Subject: [PATCH 1/3] infra: attempt to build matplotlib font cache on build --- nbi/buildspec.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/nbi/buildspec.yml b/nbi/buildspec.yml index 3df36c413..e657be5e9 100644 --- a/nbi/buildspec.yml +++ b/nbi/buildspec.yml @@ -29,6 +29,7 @@ phases: - conda config --set path_conflict warn - conda env create --name $BRAKET_ENV -f environment.yml --no-default-package --solver libmamba - pip cache purge + - python -c 'from matplotlib.font_manager import _load_fontmanager; _load_fontmanager()' - conda pack --quiet --name $BRAKET_ENV --output envs/Braket.tar --compress-level 1 --n-threads -1 - zstd -22 --ultra envs/Braket.tar -T0 --auto-threads=logical --rsyncable --sparse - du -hs envs/Braket.tar.zst From 25bacba2526da6f2a2045226589a629cea53d886 Mon Sep 17 00:00:00 2001 From: Abe Coull <85974725+AbeCoull@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:05:32 -0500 Subject: [PATCH 2/3] Update buildspec.yml --- nbi/buildspec.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nbi/buildspec.yml b/nbi/buildspec.yml index e657be5e9..04f45fdba 100644 --- a/nbi/buildspec.yml +++ b/nbi/buildspec.yml @@ -29,7 +29,9 @@ phases: - conda config --set path_conflict warn - conda env create --name $BRAKET_ENV -f environment.yml --no-default-package --solver libmamba - pip cache purge + - conda activate $BRAKET_ENV - python -c 'from matplotlib.font_manager import _load_fontmanager; _load_fontmanager()' + - conda deactivate $BRAKET_ENV - conda pack --quiet --name $BRAKET_ENV --output envs/Braket.tar --compress-level 1 --n-threads -1 - zstd -22 --ultra envs/Braket.tar -T0 --auto-threads=logical --rsyncable --sparse - du -hs envs/Braket.tar.zst From cda54beabecc6a2fc00d5eea01b1e54a6f2a6792 Mon Sep 17 00:00:00 2001 From: Abe Coull <85974725+AbeCoull@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:09:34 -0500 Subject: [PATCH 3/3] Update buildspec.yml --- nbi/buildspec.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/nbi/buildspec.yml b/nbi/buildspec.yml index 04f45fdba..0370e17c0 100644 --- a/nbi/buildspec.yml +++ b/nbi/buildspec.yml @@ -29,6 +29,7 @@ phases: - conda config --set path_conflict warn - conda env create --name $BRAKET_ENV -f environment.yml --no-default-package --solver libmamba - pip cache purge + - conda init - conda activate $BRAKET_ENV - python -c 'from matplotlib.font_manager import _load_fontmanager; _load_fontmanager()' - conda deactivate $BRAKET_ENV