Repository navigation
Fix src-layout package discovery in wheel builds - #986
Merged
lmoresi merged 1 commit intoNov 12, 2026
Merged
Conversation
Member
|
Thank you, @ss2098. This is merged to Your diagnosis was right: with the Apologies for the week it waited. Your GWB subduction example (#987) is noted; we will review it when you mark it ready. Underworld development team with AI support from Claude Code Generated by Claude Code |
Merged
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes Python package discovery in setup.py for Underworld3's src directory layout.
The change is small, but it resolves an installation issue I encountered while running the regression tests on my local macOS arm64 environment.
Problem
While testing the development branch, I noticed that several tests were failing even though the corresponding implementations were already present in the source code.
For example, the rotated free-slip solver source contained the expected diagnostic fields, but the installed version did not.
I initially rebuilt Underworld3 using ./uw build, but the installed Python modules were still different from the current source.
I traced the problem to package discovery in setup.py.
The original call:
discovered zero packages because the Python source is located under src/underworld3.
Using find_packages(where="src") discovered 18 packages.
The existing setup.cfg already specifies the src directory as the package location, so no additional configuration changes were needed.
Change
Updated the package discovery statement in setup.py to:
No solver implementations, numerical methods, dependencies, or tests were modified.
Validation
I tested the change on macOS arm64 with Python 3.12 using the project's Pixi environment.
Before the correction, the installed package had 49 Python files that differed from the source and 15 missing Python files.
After the correction:
The earlier failures in these test files disappeared after installing the corrected package.
I have not rerun the complete serial and MPI test suites after this correction.
Scope
This PR only addresses Python package discovery and installation consistency. It does not change the numerical behavior of Underworld3.