-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: F2PY: module name not written to signature file (regression) #25263
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
Labels
Comments
Yikes, will get to this ASAP, this should have definitely been caught by unit tests somewhere... Thanks for the report @jmrohwer. |
This is (again) linked to the different code paths in python -m numpy.f2py -m hi hi.f -c
❯ python -c "import hi; print(hi.hello())"
Hello from fortran The bug was somewhere between ! -*- f90 -*-
! Note: the context of this file is case sensitive.
python module hi ! in
interface ! in :hi
subroutine hello ! in :hi:hi.f
end subroutine hello
end interface
end python module hi
! This file was auto-generated with f2py (version:1.26.2).
! See:
! https://web.archive.org/web/20140822061353/http://cens.ioc.ee/projects/f2py2e |
Narrowed it down to 9140edd |
HaoZeke
added a commit
to HaoZeke/numpy
that referenced
this issue
Nov 28, 2023
Co-authored-by: jmrohwer <jmrohwer@users.noreply.github.com>
HaoZeke
added a commit
to HaoZeke/numpy
that referenced
this issue
Nov 28, 2023
HaoZeke
added a commit
to HaoZeke/numpy
that referenced
this issue
Nov 28, 2023
HaoZeke
added a commit
to HaoZeke/numpy
that referenced
this issue
Nov 28, 2023
HaoZeke
added a commit
to HaoZeke/numpy
that referenced
this issue
Nov 28, 2023
charris
pushed a commit
that referenced
this issue
Nov 30, 2023
charris
pushed a commit
to charris/numpy
that referenced
this issue
Dec 23, 2023
) * TST: Add one for numpygh-25263 Co-authored-by: jmrohwer <jmrohwer@users.noreply.github.com> * BUG: Handle modules correctly for F77 Closes numpygh-25263 --------- Co-authored-by: jmrohwer <jmrohwer@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue:
With the latest development version, the module information is not written to the signature file (
*.pyf
) when usingf2py -h
. This causes errors further down the line. It was working in v.1.26.Reproduce the code example:
Error message:
Runtime information:
Context for the issue:
Building Fortran extension modules.
The text was updated successfully, but these errors were encountered: