From 505758f46da31e45a9640a26a7293ad6e83d1ff4 Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Mon, 9 Nov 2026 13:56:34 -0500 Subject: [PATCH] refactor(python): deleted demo library python directory Note python bindings will be added but that still needs to happen and will at a latter date --- python/meson_mfem_template/__init__.py | 46 -------------------------- python/meson_mfem_template/_core.pyi | 4 --- python/meson_mfem_template/py.typed | 1 - 3 files changed, 51 deletions(-) delete mode 100644 python/meson_mfem_template/__init__.py delete mode 100644 python/meson_mfem_template/_core.pyi delete mode 100644 python/meson_mfem_template/py.typed diff --git a/python/meson_mfem_template/__init__.py b/python/meson_mfem_template/__init__.py deleted file mode 100644 index c3b57bde..00000000 --- a/python/meson_mfem_template/__init__.py +++ /dev/null @@ -1,46 +0,0 @@ -from __future__ import annotations - -import os -from pathlib import Path - - -def _native_search_paths() -> list[Path]: - package = Path(__file__).resolve().parent - return [package / "lib", package / "lib64", package / "bin"] - - -_dll_directory_handles = [] -if os.name == "nt" and hasattr(os, "add_dll_directory"): - for _directory in _native_search_paths(): - if _directory.is_dir(): - _dll_directory_handles.append(os.add_dll_directory(str(_directory))) - -from ._core import capabilities, mfem_version, serial_poisson_dofs - -__all__ = [ - "capabilities", - "get_cmake_prefix", - "get_include", - "get_lib", - "mfem_version", - "serial_poisson_dofs", -] - - -def _package_dir() -> Path: - return Path(__file__).resolve().parent - - -def get_include() -> str: - """Return the wheel-local include directory containing MFEM headers.""" - return str(_package_dir() / "include") - - -def get_lib() -> str: - """Return the wheel-local directory containing MFEM runtime libraries.""" - return str(_package_dir() / "lib") - - -def get_cmake_prefix() -> str: - """Return the prefix that can be appended to CMAKE_PREFIX_PATH.""" - return str(_package_dir()) diff --git a/python/meson_mfem_template/_core.pyi b/python/meson_mfem_template/_core.pyi deleted file mode 100644 index e07d7711..00000000 --- a/python/meson_mfem_template/_core.pyi +++ /dev/null @@ -1,4 +0,0 @@ -def mfem_version() -> str: ... -def capabilities() -> dict[str, bool]: ... -def serial_poisson_dofs(cells: int = 4, order: int = 2) -> int: ... - diff --git a/python/meson_mfem_template/py.typed b/python/meson_mfem_template/py.typed deleted file mode 100644 index 8b137891..00000000 --- a/python/meson_mfem_template/py.typed +++ /dev/null @@ -1 +0,0 @@ -