From 2a4b203312c7cd09879de6f5b158234d66caa4b4 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Mon, 11 Sep 2017 01:09:18 +0000 Subject: [PATCH] Skip passing `--enable-unicode` for CPython 3.3+ (fixes #912) --- plugins/python-build/bin/python-build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 4f8b994a..f78737d0 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1977,7 +1977,15 @@ fi # Compile with `--enable-unicode=ucs4` by default (#257) if [[ "$PYTHON_CONFIGURE_OPTS" != *"--enable-unicode="* ]]; then if ! is_mac; then - package_option python configure --enable-unicode=ucs4 + # Skip specifying `--enable-unicode` for CPython 3.3+ (#912) + case "${DEFINITION_PATH##*/}" in + "2."* | \ + "3.0" | "3.0."* | "3.0-"* | \ + "3.1" | "3.1."* | "3.1-"* | \ + "3.2" | "3.2."* | "3.2-"* ) + package_option python configure --enable-unicode=ucs4 + ;; + esac fi fi