1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import pathlib
import types
from collections.abc import Sequence
__all__ = ["build_and_import_extension", "compile_extension_module"]
def build_and_import_extension(
modname: str,
functions: Sequence[tuple[str, str, str]],
*,
prologue: str = "",
build_dir: pathlib.Path | None = None,
include_dirs: Sequence[str] = [],
more_init: str = "",
) -> types.ModuleType: ...
#
def compile_extension_module(
name: str,
builddir: pathlib.Path,
include_dirs: Sequence[str],
source_string: str,
libraries: Sequence[str] = [],
library_dirs: Sequence[str] = [],
) -> pathlib.Path: ...
|