Skip to content

fesom2_test_refactoring: pin setuptools<80 to keep pkg_resources for mkfesom#4

Merged
JanStreffing merged 1 commit into
masterfrom
fix/setuptools-pin
May 1, 2026
Merged

fesom2_test_refactoring: pin setuptools<80 to keep pkg_resources for mkfesom#4
JanStreffing merged 1 commit into
masterfrom
fix/setuptools-pin

Conversation

@JanStreffing
Copy link
Copy Markdown
Contributor

@JanStreffing JanStreffing commented May 1, 2026

Summary

Re-enabling docker-publish.yml from its 60-day inactivity disable rebuilt all four images, and the new fesom2_test_refactoring-master picked up setuptools 80+ which dropped the bundled pkg_resources module. mkfesom's mkrun.py still does import pkg_resources, so every workflow that uses this image (recom, cavities, channel, icebergs, openmp, neverworld2, …) now crashes immediately:

File "/fesom/mkfesom/mkfesom/mkrun.py", line 10, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Pin setuptools to <80 right before the mkfesom pip install -e . so pkg_resources is still available. The proper long-term fix is to migrate mkfesom to importlib.resources, but that's an mkfesom-side change.

…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.
@JanStreffing JanStreffing merged commit 27606a0 into master May 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant