diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2004-01-17 14:29:29 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2004-01-17 14:29:29 (GMT) |
commit | 3e2a30692085d32ac63f72b35da39158a471fc68 (patch) | |
tree | 4cbe735f61eae87ac56a13ca6bd32113b98bd03d /setup.py | |
parent | cd1f7430cb8f48de970021071d7683054c23b10f (diff) | |
download | cpython-3e2a30692085d32ac63f72b35da39158a471fc68.zip cpython-3e2a30692085d32ac63f72b35da39158a471fc68.tar.gz cpython-3e2a30692085d32ac63f72b35da39158a471fc68.tar.bz2 |
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!
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -756,6 +756,19 @@ class PyBuildExt(build_ext): ], )) + # 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: # This requires sizeof(int) == sizeof(long) == sizeof(char*) |