10000 Merge pull request #25160 from jmrohwer/f2pycompile · numpy/numpy@a091a25 · GitHub
[go: up one dir, main page]

Skip to content

Commit a091a25

Browse files
authored
Merge pull request #25160 from jmrohwer/f2pycompile
BUG: Fix moving compiled executable to root with f2py -c on Windows
2 parents 6b5fb5e + 63175cc commit a091a25

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)
0