From ad995a7b8c0ce5696d04fee08213f141f06d2560 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 17 Mar 2023 23:03:17 +0200 Subject: [PATCH] ENH: extension module suffix fixup to #322 --- mesonpy/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mesonpy/__init__.py b/mesonpy/__init__.py index 78db5d84c..f307874a7 100644 --- a/mesonpy/__init__.py +++ b/mesonpy/__init__.py @@ -341,10 +341,6 @@ def _stable_abi(self) -> Optional[str]: and .so on other platforms) and, if they all share the same PEP 3149 filename stable ABI tag, return it. - All files that look like extension modules are verified to - have a file name compatibel with what is expected by the - Python interpreter. An exception is raised otherwise. - Other files are ignored. """ @@ -352,6 +348,9 @@ def _stable_abi(self) -> Optional[str]: abis = [] for path, _ in self._wheel_files['platlib']: + # NOTE: When searching for shared objects files, we assume the host + # and build machines have the same soext, even though that we might + # be cross compiling. if path.suffix == soext: match = re.match(r'^[^.]+(.*)$', path.name) assert match is not None