Skip to content

[python] update the python build#50

Merged
pmaciel merged 1 commit into
feature/eckit-geofrom
feature/pythonUpdate
Jun 10, 2026
Merged

[python] update the python build#50
pmaciel merged 1 commit into
feature/eckit-geofrom
feature/pythonUpdate

Conversation

@tmi

@tmi tmi commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Follows the ecmwf/eckit#297, with a few notable differences

1/ changes the mir python package structure to:
1a/ we install the .so as mir/_mir.cython.so, not as _mir.cython.so
1b/ we change the mir init import from _mir to mir._mir
this is motivated by: a/ resemble eckit structure b/ wheels ideally don't install outside of their top level package dirs c/ I was not able to bundle it into the wheel otherwise
2/ we exclude the whole _mir* instead of just _mir at wheel building time, as nested packages need to be fully matched -- mir is more rich than eckit in this fashion
3/ we force virtual env picking at cmake config time, as it was failing otherwise
4/ we install numpy at precompile time to make sure it is found for the cythonization
5/ we fix the package requirements of mir to also include eckit
6/ we simplify the mir init to use findlibs.load

@tmi tmi force-pushed the feature/pythonUpdate branch 3 times, most recently from 201ee28 to 197a0f2 Compare June 10, 2026 09:41
Comment thread python/mir/pyproject.toml
Comment thread python/mir/src/mir/__init__.py Outdated
Comment thread python/CMakeLists.txt Outdated
@tmi tmi force-pushed the feature/pythonUpdate branch 2 times, most recently from 0cd7290 to 3e9cd16 Compare June 10, 2026 09:57
@tmi

tmi commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

@pmaciel pmaciel force-pushed the feature/pythonUpdate branch from 3e9cd16 to bb0146f Compare June 10, 2026 11:05
@pmaciel pmaciel merged commit bb0146f into feature/eckit-geo Jun 10, 2026
108 of 127 checks passed
@pmaciel pmaciel deleted the feature/pythonUpdate branch June 10, 2026 11:07
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.

2 participants