|
@ -234,6 +234,9 @@ OUT |
|
|
touch "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python3.4-config" |
|
|
touch "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python3.4-config" |
|
|
chmod +x "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python3.4-config" |
|
|
chmod +x "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python3.4-config" |
|
|
|
|
|
|
|
|
|
|
|
# yyuu/pyenv#257 |
|
|
|
|
|
stub uname '-s : echo Darwin' |
|
|
|
|
|
|
|
|
stub uname '-s : echo Darwin' |
|
|
stub uname '-s : echo Darwin' |
|
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS="--enable-framework" TMPDIR="$TMP" run_inline_definition <<OUT |
|
|
PYTHON_CONFIGURE_OPTS="--enable-framework" TMPDIR="$TMP" run_inline_definition <<OUT |
|
@ -242,7 +245,7 @@ verify_python python3.4 |
|
|
OUT |
|
|
OUT |
|
|
assert_success |
|
|
assert_success |
|
|
assert_output <<EOS |
|
|
assert_output <<EOS |
|
|
PYTHON_CONFIGURE_OPTS_ARRAY=(--libdir=${TMP}/install/lib --enable-framework=${TMP}/install --enable-unicode=ucs4) |
|
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS_ARRAY=(--libdir=${TMP}/install/lib --enable-framework=${TMP}/install) |
|
|
EOS |
|
|
EOS |
|
|
|
|
|
|
|
|
[ -L "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python" ] |
|
|
[ -L "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python" ] |
|
@ -250,6 +253,9 @@ EOS |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@test "enable universalsdk" { |
|
|
@test "enable universalsdk" { |
|
|
|
|
|
# yyuu/pyenv#257 |
|
|
|
|
|
stub uname '-s : echo Darwin' |
|
|
|
|
|
|
|
|
stub uname '-s : echo Darwin' |
|
|
stub uname '-s : echo Darwin' |
|
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS="--enable-universalsdk" TMPDIR="$TMP" run_inline_definition <<OUT |
|
|
PYTHON_CONFIGURE_OPTS="--enable-universalsdk" TMPDIR="$TMP" run_inline_definition <<OUT |
|
@ -257,7 +263,7 @@ echo "PYTHON_CONFIGURE_OPTS_ARRAY=(\${PYTHON_CONFIGURE_OPTS_ARRAY[@]})" |
|
|
OUT |
|
|
OUT |
|
|
assert_success |
|
|
assert_success |
|
|
assert_output <<EOS |
|
|
assert_output <<EOS |
|
|
PYTHON_CONFIGURE_OPTS_ARRAY=(--libdir=${TMP}/install/lib --enable-universalsdk=/ --with-universal-archs=intel --enable-unicode=ucs4) |
|
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS_ARRAY=(--libdir=${TMP}/install/lib --enable-universalsdk=/ --with-universal-archs=intel) |
|
|
EOS |
|
|
EOS |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -283,6 +289,9 @@ OUT |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@test "default MACOSX_DEPLOYMENT_TARGET" { |
|
|
@test "default MACOSX_DEPLOYMENT_TARGET" { |
|
|
|
|
|
# yyuu/pyenv#257 |
|
|
|
|
|
stub uname '-s : echo Darwin' |
|
|
|
|
|
|
|
|
stub uname '-s : echo Darwin' |
|
|
stub uname '-s : echo Darwin' |
|
|
stub sw_vers '-productVersion : echo 10.10' |
|
|
stub sw_vers '-productVersion : echo 10.10' |
|
|
|
|
|
|
|
@ -294,6 +303,9 @@ OUT |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@test "use custom MACOSX_DEPLOYMENT_TARGET if defined" { |
|
|
@test "use custom MACOSX_DEPLOYMENT_TARGET if defined" { |
|
|
|
|
|
# yyuu/pyenv#257 |
|
|
|
|
|
stub uname '-s : echo Darwin' |
|
|
|
|
|
|
|
|
stub uname '-s : echo Darwin' |
|
|
stub uname '-s : echo Darwin' |
|
|
|
|
|
|
|
|
MACOSX_DEPLOYMENT_TARGET="10.4" TMPDIR="$TMP" run_inline_definition <<OUT |
|
|
MACOSX_DEPLOYMENT_TARGET="10.4" TMPDIR="$TMP" run_inline_definition <<OUT |
|
|