Skip to content

Commit f115ca5

Browse files
dnicolodirgommers
authored andcommitted
BUG: fix detection of platform dependent components in wheel
Correctly detect a wheel shipping shared libraries as being platform dependent also when it does not ship compiled executables or Python extension modules.
1 parent 5285d4a commit f115ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def _has_extension_modules(self) -> bool:
302302
@cached_property
303303
def _pure(self) -> bool:
304304
"""Whether the wheel is architecture independent"""
305-
if self._manifest['platlib']:
305+
if self._manifest['platlib'] or self._manifest['mesonpy-libs']:
306306
return False
307307
for _, file in self._manifest['scripts']:
308308
if _is_native(file):

0 commit comments

Comments
 (0)