1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-09 12:03:49 -05:00

Merge pull request #978 from pyenv/skip-enable-unicode-py33

Skip passing `--enable-unicode` for CPython 3.3+ (fixes #912)
This commit is contained in:
Yamashita, Yuu
2017-10-31 09:57:18 +09:00
committed by GitHub
6 changed files with 82 additions and 74 deletions

View File

@@ -1978,7 +1978,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