summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-08 15:05:18 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-08 15:05:18 (GMT)
commitad80c6bb2afa6d46fc19104127d7b02f8a5e2169 (patch)
tree3e1a47152e5f36929f0730c70604b904eb6e9f99 /setup.py
parent6349e8956774f675eb10a81d3498eb613ebb397f (diff)
downloadcpython-ad80c6bb2afa6d46fc19104127d7b02f8a5e2169.zip
cpython-ad80c6bb2afa6d46fc19104127d7b02f8a5e2169.tar.gz
cpython-ad80c6bb2afa6d46fc19104127d7b02f8a5e2169.tar.bz2
Build with --disable-unicode again. Fixes #1158607.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index 3ce2f89..6713a9c 100644
--- a/setup.py
+++ b/setup.py
@@ -770,11 +770,12 @@ class PyBuildExt(build_ext):
))
# Hye-Shik Chang's CJKCodecs modules.
- exts.append(Extension('_multibytecodec',
- ['cjkcodecs/multibytecodec.c']))
- for loc in ('kr', 'jp', 'cn', 'tw', 'hk', 'iso2022'):
- exts.append(Extension('_codecs_' + loc,
- ['cjkcodecs/_codecs_%s.c' % loc]))
+ if have_unicode:
+ exts.append(Extension('_multibytecodec',
+ ['cjkcodecs/multibytecodec.c']))
+ for loc in ('kr', 'jp', 'cn', 'tw', 'hk', 'iso2022'):
+ exts.append(Extension('_codecs_' + loc,
+ ['cjkcodecs/_codecs_%s.c' % loc]))
# Dynamic loading module
if sys.maxint == 0x7fffffff: