_backend.pyi 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import abc
  2. from pathlib import Path
  3. from typing import Any, Final
  4. class Backend(abc.ABC):
  5. modulename: Final[str]
  6. sources: Final[list[str | Path]]
  7. extra_objects: Final[list[str]]
  8. build_dir: Final[str | Path]
  9. include_dirs: Final[list[str | Path]]
  10. library_dirs: Final[list[str | Path]]
  11. libraries: Final[list[str]]
  12. define_macros: Final[list[tuple[str, str | None]]]
  13. undef_macros: Final[list[str]]
  14. f2py_flags: Final[list[str]]
  15. sysinfo_flags: Final[list[str]]
  16. fc_flags: Final[list[str]]
  17. flib_flags: Final[list[str]]
  18. setup_flags: Final[list[str]]
  19. remove_build_dir: Final[bool]
  20. extra_dat: Final[dict[str, Any]]
  21. def __init__(
  22. self,
  23. /,
  24. modulename: str,
  25. sources: list[str | Path],
  26. extra_objects: list[str],
  27. build_dir: str | Path,
  28. include_dirs: list[str | Path],
  29. library_dirs: list[str | Path],
  30. libraries: list[str],
  31. define_macros: list[tuple[str, str | None]],
  32. undef_macros: list[str],
  33. f2py_flags: list[str],
  34. sysinfo_flags: list[str],
  35. fc_flags: list[str],
  36. flib_flags: list[str],
  37. setup_flags: list[str],
  38. remove_build_dir: bool,
  39. extra_dat: dict[str, Any],
  40. ) -> None: ...
  41. #
  42. @abc.abstractmethod
  43. def compile(self) -> None: ...