Kaydet (Commit) d28216b2 authored tarafından Jason Tishler's avatar Jason Tishler

Patch #588564: _locale library patch

This patch enables setup.py to find gettext routines when they are
located in libintl instead of libc.  Although I developed this patch for
Cygwin, I hope that it can be easily updated to support other platforms
(if necessary). I tested this patch under Cygwin and Red Hat Linux 7.1.
üst eb3f00ae
...@@ -302,7 +302,12 @@ class PyBuildExt(build_ext): ...@@ -302,7 +302,12 @@ class PyBuildExt(build_ext):
if have_unicode: if have_unicode:
exts.append( Extension('unicodedata', ['unicodedata.c']) ) exts.append( Extension('unicodedata', ['unicodedata.c']) )
# access to ISO C locale support # access to ISO C locale support
exts.append( Extension('_locale', ['_localemodule.c']) ) if platform in ['cygwin']:
locale_libs = ['intl']
else:
locale_libs = []
exts.append( Extension('_locale', ['_localemodule.c'],
libraries=locale_libs ) )
# Modules with some UNIX dependencies -- on by default: # Modules with some UNIX dependencies -- on by default:
# (If you have a really backward UNIX, select and socket may not be # (If you have a really backward UNIX, select and socket may not be
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment