mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Merge pull request #668 from yyuu/ruby-build-20160602
ruby-build 20160602
This commit is contained in:
commit
9a10674ab9
6 changed files with 19 additions and 9 deletions
|
@ -14,7 +14,7 @@
|
||||||
# -g/--debug Build a debug version
|
# -g/--debug Build a debug version
|
||||||
#
|
#
|
||||||
|
|
||||||
PYTHON_BUILD_VERSION="20160130"
|
PYTHON_BUILD_VERSION="20160602"
|
||||||
|
|
||||||
OLDIFS="$IFS"
|
OLDIFS="$IFS"
|
||||||
|
|
||||||
|
@ -1831,8 +1831,16 @@ fi
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
if [ -z "$MAKE" ]; then
|
if [ -z "$MAKE" ]; then
|
||||||
if [ "FreeBSD" = "$(uname -s)" ] && [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then
|
if [ "FreeBSD" = "$(uname -s)" ]; then
|
||||||
export MAKE="gmake"
|
# 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
|
else
|
||||||
export MAKE="make"
|
export MAKE="make"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -5,6 +5,10 @@ export PYTHON_BUILD_SKIP_MIRROR=1
|
||||||
export PYTHON_BUILD_CACHE_PATH=
|
export PYTHON_BUILD_CACHE_PATH=
|
||||||
export PYTHON_BUILD_CURL_OPTS=
|
export PYTHON_BUILD_CURL_OPTS=
|
||||||
|
|
||||||
|
setup() {
|
||||||
|
ensure_not_found_in_path aria2c
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@test "package URL without checksum" {
|
@test "package URL without checksum" {
|
||||||
stub curl "-q -o * -*S* http://example.com/* : cp $FIXTURE_ROOT/\${5##*/} \$3"
|
stub curl "-q -o * -*S* http://example.com/* : cp $FIXTURE_ROOT/\${5##*/} \$3"
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
load test_helper
|
load test_helper
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
ensure_not_found_in_path aria2c
|
|
||||||
export PYENV_ROOT="${TMP}/pyenv"
|
export PYENV_ROOT="${TMP}/pyenv"
|
||||||
export HOOK_PATH="${TMP}/i has hooks"
|
export HOOK_PATH="${TMP}/i has hooks"
|
||||||
mkdir -p "$HOOK_PATH"
|
mkdir -p "$HOOK_PATH"
|
||||||
|
|
|
@ -6,6 +6,10 @@ export PYTHON_BUILD_CACHE_PATH=
|
||||||
export PYTHON_BUILD_MIRROR_URL=http://mirror.example.com
|
export PYTHON_BUILD_MIRROR_URL=http://mirror.example.com
|
||||||
export PYTHON_BUILD_CURL_OPTS=
|
export PYTHON_BUILD_CURL_OPTS=
|
||||||
|
|
||||||
|
setup() {
|
||||||
|
ensure_not_found_in_path aria2c
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@test "package URL without checksum bypasses mirror" {
|
@test "package URL without checksum bypasses mirror" {
|
||||||
stub shasum true
|
stub shasum true
|
||||||
|
|
|
@ -4,7 +4,6 @@ load test_helper
|
||||||
export PYENV_ROOT="${TMP}/pyenv"
|
export PYENV_ROOT="${TMP}/pyenv"
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
ensure_not_found_in_path aria2c
|
|
||||||
stub pyenv-hooks 'install : true'
|
stub pyenv-hooks 'install : true'
|
||||||
stub pyenv-rehash 'true'
|
stub pyenv-rehash 'true'
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,10 +38,6 @@ ensure_not_found_in_path() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
setup() {
|
|
||||||
ensure_not_found_in_path aria2c
|
|
||||||
}
|
|
||||||
|
|
||||||
teardown() {
|
teardown() {
|
||||||
rm -fr "${TMP:?}"/*
|
rm -fr "${TMP:?}"/*
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue