Skip to content

Commit b1cbffa

Browse files
doronbeharFFY00
authored andcommitted
ENH: extension module suffix fixup to #322
1 parent 961fb56 commit b1cbffa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mesonpy/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,17 +341,16 @@ def _stable_abi(self) -> Optional[str]:
341341
and .so on other platforms) and, if they all share the same
342342
PEP 3149 filename stable ABI tag, return it.
343343
344-
All files that look like extension modules are verified to
345-
have a file name compatibel with what is expected by the
346-
Python interpreter. An exception is raised otherwise.
347-
348344
Other files are ignored.
349345
350346
"""
351347
soext = sorted(_EXTENSION_SUFFIXES, key=len)[0]
352348
abis = []
353349

354350
for path, _ in self._wheel_files['platlib']:
351+
# NOTE: When searching for shared objects files, we assume the host
352+
# and build machines have the same soext, even though that we might
353+
# be cross compiling.
355354
if path.suffix == soext:
356355
match = re.match(r'^[^.]+(.*)$', path.name)
357356
assert match is not None

0 commit comments

Comments
 (0)