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

Skip to content

Commit 52388f8

Browse files
authored
Merge pull request #25218 from charris/backport-25160
BUG: Fix moving compiled executable to root with f2py -c on Windows
2 parents f83786d + 7ce7ce5 commit 52388f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

numpy/f2py/_backends/_meson.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from ._backend import Backend
99
from string import Template
10+
from itertools import chain
1011

1112
import warnings
1213

@@ -83,7 +84,10 @@ def __init__(self, *args, **kwargs):
8384

8485
def _move_exec_to_root(self, build_dir: Path):
8586
walk_dir = Path(build_dir) / self.meson_build_dir
86-
path_objects = walk_dir.glob(f"{self.modulename}*.so")
87+
path_objects = chain(
88+
walk_dir.glob(f"{self.modulename}*.so"),
89+
walk_dir.glob(f"{self.modulename}*.pyd"),
90+
)
8791
for path_object in path_objects:
8892
shutil.move(path_object, Path.cwd())
8993

0 commit comments

Comments
 (0)