BUG: Fix moving compiled executable to root with f2py -c on Windows #25218
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.
Backport of #25160.
This is a follow up to #25000 (bug report) and #25073 (PR) which fixed f2py compilation under Windows using
f2py -c
by declaringquadmath
as dependency and referring to compatible Windows toolchains in the documentation.The f2py compile still does not work as expected under Windows as the compiled binary is not moved to the root directory after compile. This PR fixes that by searching for
*.pyd
files in addition to*.so
files in the build directory.FORMAT IT RIGHT:
https://www.numpy.org/devdocs/dev/development_workflow.html#writing-the-commit-message
IF IT'S A NEW FEATURE OR API CHANGE, TEST THE WATERS:
https://www.numpy.org/devdocs/dev/development_workflow.html#get-the-mailing-list-s-opinion
HIT ALL THE GUIDELINES:
https://numpy.org/devdocs/dev/index.html#guidelines
WHAT TO DO IF WE HAVEN'T GOTTEN BACK TO YOU:
https://www.numpy.org/devdocs/dev/development_workflow.html#getting-your-pr-reviewed
-->