Skip to content

BUG: Fix moving compiled executable to root with f2py -c on Windows#25218

Merged
charris merged 1 commit intonumpy:maintenance/1.26.xfrom
charris:backport-25160
Nov 21, 2023
Merged

BUG: Fix moving compiled executable to root with f2py -c on Windows#25218
charris merged 1 commit intonumpy:maintenance/1.26.xfrom
charris:backport-25160

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Nov 21, 2023

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 declaring quadmath 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.

@charris charris added this to the 1.26.3 release milestone Nov 21, 2023
@charris charris merged commit 52388f8 into numpy:maintenance/1.26.x Nov 21, 2023
@charris charris deleted the backport-25160 branch November 21, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants