mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-07 01:08:14 -07:00
keyword 0.13.2 for ~arm64-macos, ~x64-macos. At Prefix/macOS we conventionally name the python modules as .bundle. Bug: https://bugs.gentoo.org/910401 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
22 lines
876 B
Diff
22 lines
876 B
Diff
Support .bundle python modules at Prefix/macOS.
|
|
|
|
Not forwarding to upstream because we are reflecting on the naming
|
|
scheme of plugin modules on Prefix/macOS.
|
|
|
|
Bug: https://bugs.gentoo.org/910401
|
|
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
|
|
|
|
Index: meson-python-0.13.2/mesonpy/__init__.py
|
|
===================================================================
|
|
--- meson-python-0.13.2.orig/mesonpy/__init__.py
|
|
+++ meson-python-0.13.2/mesonpy/__init__.py
|
|
@@ -129,7 +129,7 @@ _STYLES = _init_colors() # holds the co
|
|
|
|
_SUFFIXES = importlib.machinery.all_suffixes()
|
|
_EXTENSION_SUFFIXES = importlib.machinery.EXTENSION_SUFFIXES
|
|
-_EXTENSION_SUFFIX_REGEX = re.compile(r'^\.(?:(?P<abi>[^.]+)\.)?(?:so|pyd|dll)$')
|
|
+_EXTENSION_SUFFIX_REGEX = re.compile(r'^\.(?:(?P<abi>[^.]+)\.)?(?:so|pyd|dll|bundle)$')
|
|
assert all(re.match(_EXTENSION_SUFFIX_REGEX, x) for x in _EXTENSION_SUFFIXES)
|
|
|
|
|