8000 BUG: f2pyarg sort args fix · numpy/numpy@5aa96cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 5aa96cd

Browse files
NamamiShankerHaoZeke
authored andcommitted
BUG: f2pyarg sort args fix
1 parent 8ce9426 commit 5aa96cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

numpy/f2py/f2pyarg.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,7 @@ def process_args(args: argparse.Namespace, rem: list[str]) -> None:
829829
def sort_args(args: list[str]) -> list[str]:
830830
"""Sort files at the end of the list"""
831831
extensions = (".f", ".for", ".ftn", ".f77", ".f90", ".f95", ".f03", ".f08", ".pyf", ".src", ".o", ".out", ".so", ".a")
832-
if any(arg.endswith(extensions) for arg in args):
833-
return sorted(args, key=lambda arg: arg.endswith(extensions))
832+
return sorted(args, key=lambda arg: arg.endswith(extensions))
834833

835834
def main():
836835
logger = logging.getLogger("f2py_cli")

0 commit comments

Comments
 (0)
0