Skip to content

v4: Fixes to allow for odd Python setups and f2py#428

Merged
mathomp4 merged 2 commits intodevelopfrom
feature/mathomp4/v4-fix-f2py-detect
Mar 18, 2025
Merged

v4: Fixes to allow for odd Python setups and f2py#428
mathomp4 merged 2 commits intodevelopfrom
feature/mathomp4/v4-fix-f2py-detect

Conversation

@mathomp4
Copy link
Copy Markdown
Member

This PR to v4 is an attempt to let f2py work in odd scenarios where perhaps more than one Python stack is in the PATH. In some cases, this is expected (Spack) but in other cases, it is an unsupported way forward (two different Miniforge stacks of different Python vintage).

First, we look for bare f2py first as systems like Spack only install that.

Second, we look to see if the Python executable is the same path as the f2py found. If not, we add a WARNING to the CMake output. We cannot FATAL_ERROR because of things like Spack.

This is about as good as we can do.

We also add an ugly hack for f2py on macOS with AppleClang because meson and CC and I don't know anymore.

@mathomp4 mathomp4 added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Mar 12, 2025
@mathomp4 mathomp4 self-assigned this Mar 12, 2025
@mathomp4 mathomp4 marked this pull request as ready for review March 18, 2025 14:58
@mathomp4 mathomp4 requested a review from a team as a code owner March 18, 2025 14:58
@mathomp4 mathomp4 merged commit c92e335 into develop Mar 18, 2025
1 of 3 checks passed
@mathomp4 mathomp4 deleted the feature/mathomp4/v4-fix-f2py-detect branch March 18, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff The changes in this pull request have verified to be zero-diff with the target branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant