File tree Expand file tree Collapse file tree
src/numpy-stubs/testing/_private Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import pathlib
22import types
3- from collections .abc import Sequence
3+ from collections .abc import Iterable , Sequence
44
55__all__ = ["build_and_import_extension" , "compile_extension_module" ]
66
@@ -10,16 +10,24 @@ def build_and_import_extension(
1010 * ,
1111 prologue : str = "" ,
1212 build_dir : pathlib .Path | None = None ,
13- include_dirs : Sequence [str ] = [] ,
13+ include_dirs : Sequence [str ] | None = None ,
1414 more_init : str = "" ,
1515) -> types .ModuleType : ...
16-
17- #
1816def compile_extension_module (
1917 name : str ,
2018 builddir : pathlib .Path ,
2119 include_dirs : Sequence [str ],
2220 source_string : str ,
23- libraries : Sequence [str ] = [] ,
24- library_dirs : Sequence [str ] = [] ,
21+ libraries : Sequence [str ] | None = None ,
22+ library_dirs : Sequence [str ] | None = None ,
2523) -> pathlib .Path : ...
24+ def build (
25+ cfile : pathlib .Path ,
26+ outputfilename : pathlib .Path ,
27+ compile_extra : str ,
28+ link_extra : str ,
29+ include_dirs : str ,
30+ libraries : object , # unused
31+ library_dirs : Iterable [str ],
32+ ) -> pathlib .Path : ... # undocumented
33+ def get_so_suffix () -> str : ... # undocumented
You can’t perform that action at this time.
0 commit comments