Skip to content

Commit

Permalink
BUG: Don't lower .pyf files
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Dec 1, 2023
1 parent 3bf06f0 commit 8d47e18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions numpy/f2py/f2py2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,12 +688,12 @@ def run_compile():

# Construct wrappers / signatures / things
if backend_key == 'meson':
outmess('Using meson backend\nWill pass --lower to f2py\nSee https://numpy.org/doc/stable/f2py/buildtools/meson.html\n')
f2py_flags.append('--lower')
if pyf_files:
run_main(f" {' '.join(f2py_flags)} {' '.join(pyf_files)}".split())
else:
if not pyf_files:
outmess('Using meson backend\nWill pass --lower to f2py\nSee https://numpy.org/doc/stable/f2py/buildtools/meson.html\n')
f2py_flags.append('--lower')
run_main(f" {' '.join(f2py_flags)} -m {modulename} {' '.join(sources)}".split())
else:
run_main(f" {' '.join(f2py_flags)} {' '.join(pyf_files)}".split())

# Now use the builder
builder = build_backend(
Expand Down

0 comments on commit 8d47e18

Please sign in to comment.