diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index f7e89322..3d148096 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1934,7 +1934,9 @@ fi # Compile with `--enable-unicode=ucs4` by default (#257) if [[ "$PYTHON_CONFIGURE_OPTS" != *"--enable-unicode="* ]]; then - package_option python configure --enable-unicode=ucs4 + if ! is_mac; then + package_option python configure --enable-unicode=ucs4 + fi fi # SSL Certificate error with older wget that does not support Server Name Indication (#60) diff --git a/plugins/python-build/test/build.bats b/plugins/python-build/test/build.bats index 236a3d7c..466aebcf 100644 --- a/plugins/python-build/test/build.bats +++ b/plugins/python-build/test/build.bats @@ -223,7 +223,11 @@ OUT stub uname '-s : echo Darwin' stub sw_vers '-productVersion : echo 10.10' + # yyuu/pyenv#257 stub uname '-s : echo Darwin' + + stub uname '-s : echo Darwin' + stub sysctl false stub_make_install @@ -238,7 +242,7 @@ DEF assert_build_log <