aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2022-02-06 16:35:51 +0200
committerMatti Picus <matti.picus@gmail.com>2022-02-06 16:35:51 +0200
commit93787474b464095aa61d9f0f6f56b18341b1993e (patch)
tree622108082b988efa266111817ccc77c0cc9ca2fd
parentfix signature of PyUnicode_DecodeLocale and add PyUnicode_DecodeLocaleAndSize... (diff)
downloadpypy-93787474b464095aa61d9f0f6f56b18341b1993e.tar.gz
pypy-93787474b464095aa61d9f0f6f56b18341b1993e.tar.bz2
pypy-93787474b464095aa61d9f0f6f56b18341b1993e.zip
disable _locale.gettext and friends on macOS like on CPython
Works around packaging libintl
-rw-r--r--pypy/module/_locale/moduledef.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pypy/module/_locale/moduledef.py b/pypy/module/_locale/moduledef.py
index 6d91bf3718..550f8e8b4d 100644
--- a/pypy/module/_locale/moduledef.py
+++ b/pypy/module/_locale/moduledef.py
@@ -22,7 +22,7 @@ class Module(MixedModule):
interpleveldefs.update({
'nl_langinfo': 'interp_locale.nl_langinfo',
})
- if rlocale.HAVE_LIBINTL:
+ if rlocale.HAVE_LIBINTL and not sys.platform == 'darwin':
interpleveldefs.update({
'gettext': 'interp_locale.gettext',
'dgettext': 'interp_locale.dgettext',