From 3a1379cb3474ada8282108498bb67df14014a509 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Mon, 15 Aug 2016 04:40:09 +0000 Subject: [PATCH 1/2] Import changes from ruby-build v20160602 --- plugins/python-build/bin/python-build | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 779a0a5a..e56ff6a8 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -14,7 +14,7 @@ # -g/--debug Build a debug version # -PYTHON_BUILD_VERSION="20160130" +PYTHON_BUILD_VERSION="20160602" OLDIFS="$IFS" @@ -1831,8 +1831,16 @@ fi #fi if [ -z "$MAKE" ]; then - if [ "FreeBSD" = "$(uname -s)" ] && [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then - export MAKE="gmake" + if [ "FreeBSD" = "$(uname -s)" ]; then +# if [ $(echo $1 | sed 's/-.*$//') = "jruby" ]; then +# export MAKE="gmake" +# else + if [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then + export MAKE="gmake" + else + export MAKE="make" + fi +# fi else export MAKE="make" fi From 66c8ca6cff7838332b55bf83fe67a3c5f1f645b4 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Mon, 15 Aug 2016 04:42:50 +0000 Subject: [PATCH 2/2] Import changes in rbenv/ruby-build#979 --- plugins/python-build/bin/python-build | 4 ++-- plugins/python-build/test/checksum.bats | 4 ++++ plugins/python-build/test/hooks.bats | 1 - plugins/python-build/test/mirror.bats | 4 ++++ plugins/python-build/test/pyenv.bats | 1 - plugins/python-build/test/test_helper.bash | 4 ---- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index e56ff6a8..059bcdf5 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1836,9 +1836,9 @@ if [ -z "$MAKE" ]; then # export MAKE="gmake" # else if [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then - export MAKE="gmake" + export MAKE="gmake" else - export MAKE="make" + export MAKE="make" fi # fi else diff --git a/plugins/python-build/test/checksum.bats b/plugins/python-build/test/checksum.bats index 7cbc1af8..04973a97 100644 --- a/plugins/python-build/test/checksum.bats +++ b/plugins/python-build/test/checksum.bats @@ -5,6 +5,10 @@ export PYTHON_BUILD_SKIP_MIRROR=1 export PYTHON_BUILD_CACHE_PATH= export PYTHON_BUILD_CURL_OPTS= +setup() { + ensure_not_found_in_path aria2c +} + @test "package URL without checksum" { stub curl "-q -o * -*S* http://example.com/* : cp $FIXTURE_ROOT/\${5##*/} \$3" diff --git a/plugins/python-build/test/hooks.bats b/plugins/python-build/test/hooks.bats index c055171d..1b045d53 100644 --- a/plugins/python-build/test/hooks.bats +++ b/plugins/python-build/test/hooks.bats @@ -3,7 +3,6 @@ load test_helper setup() { - ensure_not_found_in_path aria2c export PYENV_ROOT="${TMP}/pyenv" export HOOK_PATH="${TMP}/i has hooks" mkdir -p "$HOOK_PATH" diff --git a/plugins/python-build/test/mirror.bats b/plugins/python-build/test/mirror.bats index c7035b80..038a920a 100644 --- a/plugins/python-build/test/mirror.bats +++ b/plugins/python-build/test/mirror.bats @@ -6,6 +6,10 @@ export PYTHON_BUILD_CACHE_PATH= export PYTHON_BUILD_MIRROR_URL=http://mirror.example.com export PYTHON_BUILD_CURL_OPTS= +setup() { + ensure_not_found_in_path aria2c +} + @test "package URL without checksum bypasses mirror" { stub shasum true diff --git a/plugins/python-build/test/pyenv.bats b/plugins/python-build/test/pyenv.bats index 39d8d140..8ed63207 100644 --- a/plugins/python-build/test/pyenv.bats +++ b/plugins/python-build/test/pyenv.bats @@ -4,7 +4,6 @@ load test_helper export PYENV_ROOT="${TMP}/pyenv" setup() { - ensure_not_found_in_path aria2c stub pyenv-hooks 'install : true' stub pyenv-rehash 'true' } diff --git a/plugins/python-build/test/test_helper.bash b/plugins/python-build/test/test_helper.bash index 8dbd47cc..7f55cd5d 100644 --- a/plugins/python-build/test/test_helper.bash +++ b/plugins/python-build/test/test_helper.bash @@ -38,10 +38,6 @@ ensure_not_found_in_path() { done } -setup() { - ensure_not_found_in_path aria2c -} - teardown() { rm -fr "${TMP:?}"/* }