[Python-checkins] python/dist/src setup.py,1.106,1.107

jlt63@users.sourceforge.net jlt63@users.sourceforge.net
2002年8月14日 04:13:55 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv21613
Modified Files:
	setup.py 
Log Message:
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.
Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.106
retrieving revision 1.107
diff -C2 -d -r1.106 -r1.107
*** setup.py	13 Aug 2002 20:09:26 -0000	1.106
--- setup.py	14 Aug 2002 11:13:52 -0000	1.107
***************
*** 303,307 ****
 exts.append( Extension('unicodedata', ['unicodedata.c']) )
 # access to ISO C locale support
! exts.append( Extension('_locale', ['_localemodule.c']) )
 
 # Modules with some UNIX dependencies -- on by default:
--- 303,312 ----
 exts.append( Extension('unicodedata', ['unicodedata.c']) )
 # access to ISO C locale support
! 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:

AltStyle によって変換されたページ (->オリジナル) /