summaryrefslogtreecommitdiff
path: root/dev-python/meson-python/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-18 00:58:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-18 00:58:25 +0100
commit5e0a5ca921524f8859808527a57655eec16efa52 (patch)
tree7c58411b1e81478df4e20082a6adec2553c24c5c /dev-python/meson-python/files
parent4c16e0a214824f15f09396e359db4f1f5c086fec (diff)
gentoo auto-resync : 18:07:2023 - 00:58:24
Diffstat (limited to 'dev-python/meson-python/files')
-rw-r--r--dev-python/meson-python/files/meson-python-0.13.2_Mach-O_bundle.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/meson-python/files/meson-python-0.13.2_Mach-O_bundle.patch b/dev-python/meson-python/files/meson-python-0.13.2_Mach-O_bundle.patch
new file mode 100644
index 000000000000..2531c93f41e2
--- /dev/null
+++ b/dev-python/meson-python/files/meson-python-0.13.2_Mach-O_bundle.patch
@@ -0,0 +1,21 @@
+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)
+
+