[Python-checkins] python/dist/src setup.py,1.180,1.181

perky at users.sourceforge.net perky at users.sourceforge.net
Sat Jan 17 09:29:30 EST 2004


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv14239

Modified Files:
	setup.py 
Log Message:
Add CJK codecs support as discussed on python-dev. (SF #873597)

Several style fixes are suggested by Martin v. Loewis and
Marc-Andre Lemburg. Thanks!


Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.180
retrieving revision 1.181
diff -C2 -d -r1.180 -r1.181
*** setup.py	5 Jan 2004 10:13:33 -0000	1.180
--- setup.py	17 Jan 2004 14:29:28 -0000	1.181
***************
*** 757,760 ****
--- 757,773 ----
                                ))
  
+         # Hye-Shik Chang's CJKCodecs modules.
+         exts.append(Extension('_multibytecodec',
+                               ['cjkcodecs/multibytecodec.c']))
+         for loc in ('ja_JP', 'ko_KR', 'zh_CN', 'zh_TW'):
+             exts.append(Extension('_codecs_mapdata_' + loc,
+                                   ['cjkcodecs/mapdata_%s.c' % loc]))
+         for enc in ('shift_jis', 'cp932', 'euc_jp', 'iso2022_jp',
+                     'iso2022_jp_1', 'iso2022_jp_2', 'iso2022_jp_3',
+                     'iso2022_jp_ext', 'shift_jisx0213', 'euc_jisx0213',
+                     'euc_kr', 'cp949', 'johab', 'iso2022_kr', 'gb2312',
+                     'gbk', 'gb18030', 'hz', 'big5', 'cp950'):
+             exts.append(Extension('_codecs_' + enc, ['cjkcodecs/_%s.c' % enc]))
+ 
          # Dynamic loading module
          if sys.maxint == 0x7fffffff:





More information about the Python-checkins mailing list