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

Skip to content

Commit 78b9b98

Browse files
NamamiShankerHaoZeke
authored andcommitted
BUG: Get module name from postlist
1 parent 9e8756c commit 78b9b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/f2py/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ def _check_postlist(postlist: list[dict[str, Any]], sign_file: Path) -> None:
234234
def _callcrackfortran(files: list[str], module_name: str) -> list[dict[str, Any]]:
235235
postlist = crackfortran.crackfortran([str(file) for file in files])
236236
for mod in postlist:
237-
mod["coutput"] = f"{module_name}module.c"
238-
mod["f2py_wrapper_output"] = f"{module_name}-f2pywrappers.f"
237+
mod["coutput"] = f"{mod['name']}module.c"
238+
mod["f2py_wrapper_output"] = f"{mod['name']}-f2pywrappers.f"
239239
return postlist
240240

241241
def _set_dependencies_dist(ext_args: dict[str, Any], link_resource: list[str]) -> None:

0 commit comments

Comments
 (0)