summaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/numpy/f2py/_backends/_backend.pyi
blob: ed24519ab914cf32d80ae4972ee1f152502c252c (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import abc
from pathlib import Path
from typing import Any, Final

class Backend(abc.ABC):
    modulename: Final[str]
    sources: Final[list[str | Path]]
    extra_objects: Final[list[str]]
    build_dir: Final[str | Path]
    include_dirs: Final[list[str | Path]]
    library_dirs: Final[list[str | Path]]
    libraries: Final[list[str]]
    define_macros: Final[list[tuple[str, str | None]]]
    undef_macros: Final[list[str]]
    f2py_flags: Final[list[str]]
    sysinfo_flags: Final[list[str]]
    fc_flags: Final[list[str]]
    flib_flags: Final[list[str]]
    setup_flags: Final[list[str]]
    remove_build_dir: Final[bool]
    extra_dat: Final[dict[str, Any]]

    def __init__(
        self,
        /,
        modulename: str,
        sources: list[str | Path],
        extra_objects: list[str],
        build_dir: str | Path,
        include_dirs: list[str | Path],
        library_dirs: list[str | Path],
        libraries: list[str],
        define_macros: list[tuple[str, str | None]],
        undef_macros: list[str],
        f2py_flags: list[str],
        sysinfo_flags: list[str],
        fc_flags: list[str],
        flib_flags: list[str],
        setup_flags: list[str],
        remove_build_dir: bool,
        extra_dat: dict[str, Any],
    ) -> None: ...

    #
    @abc.abstractmethod
    def compile(self) -> None: ...