diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-02-06 16:35:51 +0200 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2022-02-06 16:35:51 +0200 |
commit | 93787474b464095aa61d9f0f6f56b18341b1993e (patch) | |
tree | 622108082b988efa266111817ccc77c0cc9ca2fd | |
parent | fix signature of PyUnicode_DecodeLocale and add PyUnicode_DecodeLocaleAndSize... (diff) | |
download | pypy-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.py | 2 |
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', |