Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions mesonpy/__init__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -341,17 +341,16 @@ 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.

"""
soext = sorted(_EXTENSION_SUFFIXES, key=len)[0]
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
Expand Down