Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Fix f2py derived types in modules #29040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 23, 2025

Conversation

zoghbi-a
Copy link
Contributor

@zoghbi-a zoghbi-a commented May 23, 2025

Closes #29037.
The issue is a result of #27695 in v2.2.0.

Before 2.2.0, modules that are used in a use statement are skipped. In v2.2.0 (#27695), an additional check was added to only skip modules that contain a common block. With that, modules with derived types are no longer skipped. This PR adds a check to see if the module contains derived types, and skip it if it does.

@zoghbi-a zoghbi-a changed the title Fix f2py derived types BUG: Fix f2py derived types May 23, 2025
@zoghbi-a zoghbi-a changed the title BUG: Fix f2py derived types BUG: Fix f2py derived types in modules May 23, 2025
@melissawm melissawm moved this to Awaiting a code review in NumPy first-time contributor PRs May 23, 2025
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label May 23, 2025
@charris charris merged commit 5378d3d into numpy:main May 23, 2025
76 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting a code review to Completed in NumPy first-time contributor PRs May 23, 2025
@charris
Copy link
Member

charris commented May 23, 2025

Thanks @zoghbi-a .

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

BUG: f2py fails to compile modules with derived types after changes in 2.2.0
3 participants