From 1c7ac79b55acef5fd4b1e29a9a8b84f1c009600f Mon Sep 17 00:00:00 2001 From: Jan Streffing Date: Fri, 1 May 2026 23:01:45 +0200 Subject: [PATCH] fesom2_test_refactoring: pin setuptools<80 so mkfesom can import pkg_resources setuptools 80 dropped the bundled pkg_resources module by default; mkfesom's mkrun.py still imports it, so building the image with current conda+pip yielded an mkrun that crashes immediately with 'ModuleNotFoundError: No module named pkg_resources' inside the recom and cavities CI workflows. Pin to <80 until mkfesom is migrated to importlib.resources. --- fesom2_test_refactoring/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fesom2_test_refactoring/Dockerfile b/fesom2_test_refactoring/Dockerfile index 2a2f5c7..43d2ca1 100644 --- a/fesom2_test_refactoring/Dockerfile +++ b/fesom2_test_refactoring/Dockerfile @@ -26,7 +26,11 @@ RUN wget \ RUN git clone https://github.com/FESOM/mkfesom.git WORKDIR /fesom/mkfesom/ -RUN pip install -e . +# setuptools 80 dropped the bundled pkg_resources module by default, but +# mkfesom's mkrun.py still does `import pkg_resources`. Pin to a version +# that still exposes it until mkfesom is migrated to importlib.resources. +RUN pip install 'setuptools<80' \ + && pip install -e . WORKDIR /fesom/ RUN mkdir results