2014-11-13 12:06:45 -05:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
load test_helper
|
|
|
|
export PYTHON_BUILD_CACHE_PATH="$TMP/cache"
|
|
|
|
export MAKE=make
|
|
|
|
export MAKE_OPTS="-j 2"
|
|
|
|
export CC=cc
|
2018-04-24 01:22:32 -04:00
|
|
|
export PYTHON_BUILD_HTTP_CLIENT="curl"
|
2014-11-13 12:06:45 -05:00
|
|
|
|
|
|
|
export TMP_FIXTURES="$TMP/fixtures"
|
|
|
|
|
|
|
|
setup() {
|
|
|
|
mkdir -p "$INSTALL_ROOT"
|
|
|
|
stub md5 false
|
2016-06-20 20:31:19 -04:00
|
|
|
stub curl false
|
2014-11-13 12:06:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
executable() {
|
|
|
|
local file="$1"
|
|
|
|
mkdir -p "${file%/*}"
|
|
|
|
cat > "$file"
|
|
|
|
chmod +x "$file"
|
|
|
|
}
|
|
|
|
|
|
|
|
cached_tarball() {
|
|
|
|
mkdir -p "$PYTHON_BUILD_CACHE_PATH"
|
|
|
|
pushd "$PYTHON_BUILD_CACHE_PATH" >/dev/null
|
|
|
|
tarball "$@"
|
|
|
|
popd >/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
tarball() {
|
|
|
|
local name="$1"
|
|
|
|
local path="$PWD/$name"
|
|
|
|
local configure="$path/configure"
|
|
|
|
shift 1
|
|
|
|
|
|
|
|
executable "$configure" <<OUT
|
|
|
|
#!$BASH
|
|
|
|
echo "$name: CPPFLAGS=\\"\$CPPFLAGS\\" LDFLAGS=\\"\$LDFLAGS\\"" >> build.log
|
|
|
|
echo "$name: \$@" \${PYTHONOPT:+PYTHONOPT=\$PYTHONOPT} >> build.log
|
|
|
|
OUT
|
|
|
|
|
|
|
|
for file; do
|
|
|
|
mkdir -p "$(dirname "${path}/${file}")"
|
|
|
|
touch "${path}/${file}"
|
|
|
|
done
|
|
|
|
|
|
|
|
tar czf "${path}.tar.gz" -C "${path%/*}" "$name"
|
|
|
|
}
|
|
|
|
|
|
|
|
stub_make_install() {
|
|
|
|
stub "$MAKE" \
|
|
|
|
" : echo \"$MAKE \$@\" >> build.log" \
|
|
|
|
"install : echo \"$MAKE \$@\" >> build.log && cat build.log >> '$INSTALL_ROOT/build.log'"
|
|
|
|
}
|
|
|
|
|
|
|
|
assert_build_log() {
|
|
|
|
run cat "$INSTALL_ROOT/build.log"
|
|
|
|
assert_output
|
|
|
|
}
|
|
|
|
|
|
|
|
install_patch() {
|
|
|
|
local name="$1"
|
|
|
|
local patch="$2"
|
|
|
|
[ -n "$patch" ] || patch="python.patch"
|
|
|
|
|
|
|
|
mkdir -p "${TMP_FIXTURES}/${name%/*}/patches/${name##*/}/${patch%/*}"
|
|
|
|
cat > "${TMP_FIXTURES}/${name%/*}/patches/${name##*/}/${patch}"
|
|
|
|
}
|
|
|
|
|
|
|
|
install_tmp_fixture() {
|
|
|
|
local args
|
|
|
|
|
|
|
|
while [ "${1#-}" != "$1" ]; do
|
|
|
|
args="$args $1"
|
|
|
|
shift 1
|
|
|
|
done
|
|
|
|
|
|
|
|
local name="$1"
|
|
|
|
local destination="$2"
|
|
|
|
[ -n "$destination" ] || destination="$INSTALL_ROOT"
|
|
|
|
|
|
|
|
# Copy fixture to temporary path
|
|
|
|
mkdir -p "${TMP_FIXTURES}/${name%/*}"
|
|
|
|
cp "${FIXTURE_ROOT}/${name}" "${TMP_FIXTURES}/${name}"
|
|
|
|
|
|
|
|
run python-build $args "$TMP_FIXTURES/$name" "$destination"
|
|
|
|
}
|
|
|
|
|
2015-06-28 00:34:29 -04:00
|
|
|
resolve_link() {
|
2021-05-17 03:40:35 -04:00
|
|
|
$(type -P greadlink readlink | head -1) "$1"
|
2015-06-28 00:34:29 -04:00
|
|
|
}
|
|
|
|
|
2018-03-28 20:58:06 -04:00
|
|
|
run_inline_definition_with_name() {
|
|
|
|
local definition_name="build-definition"
|
|
|
|
case "$1" in
|
|
|
|
"--name="* )
|
|
|
|
local definition_name="${1#--name=}"
|
|
|
|
shift 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
local definition="${TMP}/${definition_name}"
|
|
|
|
cat > "$definition"
|
|
|
|
run python-build "$definition" "${1:-$INSTALL_ROOT}"
|
|
|
|
}
|
|
|
|
|
2014-11-13 12:06:45 -05:00
|
|
|
@test "apply built-in python patch before building" {
|
2017-09-10 22:02:15 -04:00
|
|
|
cached_tarball "Python-3.6.2"
|
2014-11-13 12:06:45 -05:00
|
|
|
|
|
|
|
stub brew false
|
|
|
|
stub_make_install
|
|
|
|
stub patch ' : echo patch "$@" | sed -E "s/\.[[:alnum:]]+$/.XXX/" >> build.log'
|
|
|
|
|
2017-09-10 22:02:15 -04:00
|
|
|
echo | install_patch definitions/vanilla-python "Python-3.6.2/empty.patch"
|
2014-11-13 12:06:45 -05:00
|
|
|
|
2016-10-04 20:45:21 -04:00
|
|
|
# yyuu/pyenv#257
|
|
|
|
stub uname '-s : echo Linux'
|
|
|
|
stub uname '-s : echo Linux'
|
|
|
|
|
2014-11-13 12:06:45 -05:00
|
|
|
TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null
|
|
|
|
assert_success
|
|
|
|
|
|
|
|
assert_build_log <<OUT
|
|
|
|
patch -p0 --force -i $TMP/python-patch.XXX
|
2017-09-10 22:02:15 -04:00
|
|
|
Python-3.6.2: CPPFLAGS="-I${TMP}/install/include " LDFLAGS="-L${TMP}/install/lib "
|
|
|
|
Python-3.6.2: --prefix=$INSTALL_ROOT --libdir=$INSTALL_ROOT/lib
|
2014-11-13 12:06:45 -05:00
|
|
|
make -j 2
|
|
|
|
make install
|
|
|
|
OUT
|
|
|
|
|
|
|
|
unstub make
|
|
|
|
unstub patch
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "apply built-in python patches should be sorted by its name" {
|
2017-09-10 22:02:15 -04:00
|
|
|
cached_tarball "Python-3.6.2"
|
2014-11-13 12:06:45 -05:00
|
|
|
|
2021-09-20 00:43:08 -04:00
|
|
|
for i in {1..2}; do stub brew '* : false'; done
|
2014-11-13 12:06:45 -05:00
|
|
|
stub_make_install
|
|
|
|
stub patch ' : for arg; do [[ "$arg" == "-"* ]] || sed -e "s/^/patch: /" "$arg"; done >> build.log'
|
|
|
|
|
2017-09-10 22:02:15 -04:00
|
|
|
echo "foo" | install_patch definitions/vanilla-python "Python-3.6.2/foo.patch"
|
|
|
|
echo "bar" | install_patch definitions/vanilla-python "Python-3.6.2/bar.patch"
|
|
|
|
echo "baz" | install_patch definitions/vanilla-python "Python-3.6.2/baz.patch"
|
2014-11-13 12:06:45 -05:00
|
|
|
|
2021-09-20 00:43:08 -04:00
|
|
|
for i in {1..2}; do stub uname '-s : echo Linux'; done
|
2016-10-04 20:45:21 -04:00
|
|
|
|
2014-11-13 12:06:45 -05:00
|
|
|
TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null
|
|
|
|
assert_success
|
|
|
|
|
|
|
|
assert_build_log <<OUT
|
|
|
|
patch: bar
|
|
|
|
patch: baz
|
|
|
|
patch: foo
|
2017-09-10 22:02:15 -04:00
|
|
|
Python-3.6.2: CPPFLAGS="-I${TMP}/install/include " LDFLAGS="-L${TMP}/install/lib "
|
|
|
|
Python-3.6.2: --prefix=$INSTALL_ROOT --libdir=$INSTALL_ROOT/lib
|
2014-11-13 12:06:45 -05:00
|
|
|
make -j 2
|
|
|
|
make install
|
|
|
|
OUT
|
|
|
|
|
|
|
|
unstub make
|
|
|
|
unstub patch
|
|
|
|
}
|
2015-01-31 01:35:40 -05:00
|
|
|
|
|
|
|
@test "allow custom make install target" {
|
2017-09-10 22:02:15 -04:00
|
|
|
cached_tarball "Python-3.6.2"
|
2015-01-31 01:35:40 -05:00
|
|
|
|
|
|
|
stub brew false
|
|
|
|
stub "$MAKE" \
|
|
|
|
" : echo \"$MAKE \$@\" >> build.log" \
|
|
|
|
" : echo \"$MAKE \$@\" >> build.log && cat build.log >> '$INSTALL_ROOT/build.log'"
|
|
|
|
|
2021-09-20 00:43:08 -04:00
|
|
|
for i in {1..4}; do stub uname '-s : echo Darwin'; done
|
2016-10-04 20:45:21 -04:00
|
|
|
|
2015-01-31 01:35:40 -05:00
|
|
|
PYTHON_MAKE_INSTALL_TARGET="altinstall" TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null
|
|
|
|
assert_success
|
|
|
|
|
|
|
|
assert_build_log <<OUT
|
2017-09-10 22:02:15 -04:00
|
|
|
Python-3.6.2: CPPFLAGS="-I${TMP}/install/include " LDFLAGS="-L${TMP}/install/lib "
|
|
|
|
Python-3.6.2: --prefix=$INSTALL_ROOT --libdir=$INSTALL_ROOT/lib
|
2015-01-31 01:35:40 -05:00
|
|
|
make -j 2
|
|
|
|
make altinstall
|
|
|
|
OUT
|
|
|
|
|
|
|
|
unstub make
|
|
|
|
}
|
2015-05-26 11:49:23 -04:00
|
|
|
|
|
|
|
@test "ensurepip without altinstall" {
|
|
|
|
mkdir -p "${INSTALL_ROOT}/bin"
|
|
|
|
cat <<OUT > "${INSTALL_ROOT}/bin/python"
|
|
|
|
#!$BASH
|
|
|
|
echo "python \$@" >> "${INSTALL_ROOT}/build.log"
|
|
|
|
OUT
|
|
|
|
chmod +x "${INSTALL_ROOT}/bin/python"
|
|
|
|
|
|
|
|
PYTHON_MAKE_INSTALL_TARGET="" TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
build_package_ensurepip
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
|
|
|
|
assert_build_log <<OUT
|
2015-07-18 01:22:58 -04:00
|
|
|
python -s -m ensurepip
|
2015-05-26 11:49:23 -04:00
|
|
|
OUT
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "ensurepip with altinstall" {
|
|
|
|
mkdir -p "${INSTALL_ROOT}/bin"
|
|
|
|
cat <<OUT > "${INSTALL_ROOT}/bin/python"
|
|
|
|
#!$BASH
|
|
|
|
echo "python \$@" >> "${INSTALL_ROOT}/build.log"
|
|
|
|
OUT
|
|
|
|
chmod +x "${INSTALL_ROOT}/bin/python"
|
|
|
|
|
|
|
|
PYTHON_MAKE_INSTALL_TARGET="altinstall" TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
build_package_ensurepip
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
|
|
|
|
assert_build_log <<OUT
|
2015-07-18 01:22:58 -04:00
|
|
|
python -s -m ensurepip --altinstall
|
2015-05-26 11:49:23 -04:00
|
|
|
OUT
|
|
|
|
}
|
2015-06-28 00:34:29 -04:00
|
|
|
|
|
|
|
@test "python3-config" {
|
|
|
|
mkdir -p "${INSTALL_ROOT}/bin"
|
|
|
|
touch "${INSTALL_ROOT}/bin/python3"
|
|
|
|
chmod +x "${INSTALL_ROOT}/bin/python3"
|
|
|
|
touch "${INSTALL_ROOT}/bin/python3.4"
|
|
|
|
chmod +x "${INSTALL_ROOT}/bin/python3.4"
|
|
|
|
touch "${INSTALL_ROOT}/bin/python3-config"
|
|
|
|
chmod +x "${INSTALL_ROOT}/bin/python3-config"
|
|
|
|
touch "${INSTALL_ROOT}/bin/python3.4-config"
|
|
|
|
chmod +x "${INSTALL_ROOT}/bin/python3.4-config"
|
|
|
|
|
|
|
|
TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
verify_python python3.4
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
|
|
|
|
[ -L "${INSTALL_ROOT}/bin/python" ]
|
|
|
|
[ -L "${INSTALL_ROOT}/bin/python-config" ]
|
|
|
|
[[ "$(resolve_link "${INSTALL_ROOT}/bin/python")" == "python3.4" ]]
|
|
|
|
[[ "$(resolve_link "${INSTALL_ROOT}/bin/python-config")" == "python3.4-config" ]]
|
|
|
|
}
|
|
|
|
|
2016-02-14 19:40:07 -05:00
|
|
|
@test "enable framework" {
|
2021-05-19 10:02:03 -04:00
|
|
|
mkdir -p "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin"
|
|
|
|
touch "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python3"
|
|
|
|
chmod +x "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python3"
|
|
|
|
touch "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python3.4"
|
|
|
|
chmod +x "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python3.4"
|
|
|
|
touch "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python3-config"
|
|
|
|
chmod +x "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python3-config"
|
|
|
|
touch "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python3.4-config"
|
|
|
|
chmod +x "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python3.4-config"
|
2015-06-28 00:34:29 -04:00
|
|
|
|
2021-09-20 00:43:08 -04:00
|
|
|
for i in {1..3}; do stub uname '-s : echo Darwin'; done
|
2015-06-28 00:34:29 -04:00
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS="--enable-framework" TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
echo "PYTHON_CONFIGURE_OPTS_ARRAY=(\${PYTHON_CONFIGURE_OPTS_ARRAY[@]})"
|
|
|
|
verify_python python3.4
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
assert_output <<EOS
|
2021-05-18 23:18:45 -04:00
|
|
|
PYTHON_CONFIGURE_OPTS_ARRAY=(--libdir=${TMP}/install/lib --enable-framework=${TMP}/install/Library/Frameworks)
|
2015-06-28 00:34:29 -04:00
|
|
|
EOS
|
|
|
|
|
2021-05-19 10:02:03 -04:00
|
|
|
[ -L "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python" ]
|
|
|
|
[ -L "${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin/python-config" ]
|
2015-06-28 00:34:29 -04:00
|
|
|
}
|
|
|
|
|
2016-02-14 19:40:07 -05:00
|
|
|
@test "enable universalsdk" {
|
2021-09-20 00:43:08 -04:00
|
|
|
|
|
|
|
for i in {1..3}; do stub uname '-s : echo Darwin'; done
|
2021-10-23 15:01:57 -04:00
|
|
|
stub arch "echo x86_64"
|
2015-06-28 00:34:29 -04:00
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS="--enable-universalsdk" TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
echo "PYTHON_CONFIGURE_OPTS_ARRAY=(\${PYTHON_CONFIGURE_OPTS_ARRAY[@]})"
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
assert_output <<EOS
|
2021-10-23 15:01:57 -04:00
|
|
|
PYTHON_CONFIGURE_OPTS_ARRAY=(--libdir=${TMP}/install/lib --enable-universalsdk=/)
|
|
|
|
EOS
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "enable universalsdk on Apple Silicon" {
|
|
|
|
|
|
|
|
for i in {1..3}; do stub uname '-s : echo Darwin'; done
|
|
|
|
stub arch "echo arm64"
|
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS="--enable-universalsdk" TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
echo "PYTHON_CONFIGURE_OPTS_ARRAY=(\${PYTHON_CONFIGURE_OPTS_ARRAY[@]})"
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
assert_output <<EOS
|
|
|
|
PYTHON_CONFIGURE_OPTS_ARRAY=(--libdir=${TMP}/install/lib --enable-universalsdk=/ --with-universal-archs=universal2)
|
|
|
|
EOS
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "enable universalsdk with explicit archs argument" {
|
|
|
|
|
|
|
|
for i in {1..3}; do stub uname '-s : echo Darwin'; done
|
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS="--enable-universalsdk --with-universal-archs=foo" TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
echo "PYTHON_CONFIGURE_OPTS_ARRAY=(\${PYTHON_CONFIGURE_OPTS_ARRAY[@]})"
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
assert_output <<EOS
|
|
|
|
PYTHON_CONFIGURE_OPTS_ARRAY=(--libdir=${TMP}/install/lib --enable-universalsdk=/)
|
2015-06-28 00:34:29 -04:00
|
|
|
EOS
|
|
|
|
}
|
2015-06-28 00:49:53 -04:00
|
|
|
|
2016-02-14 19:40:07 -05:00
|
|
|
@test "enable custom unicode configuration" {
|
2017-09-10 22:02:15 -04:00
|
|
|
cached_tarball "Python-3.6.2"
|
2016-02-14 19:40:07 -05:00
|
|
|
|
2021-10-25 21:36:01 -04:00
|
|
|
for i in {1..4}; do stub brew false; done
|
2022-02-09 10:55:23 -05:00
|
|
|
for i in {1..7}; do stub uname '-s : echo Linux'; done
|
2016-02-14 19:40:07 -05:00
|
|
|
stub "$MAKE" \
|
|
|
|
" : echo \"$MAKE \$@\" >> build.log" \
|
|
|
|
" : echo \"$MAKE \$@\" >> build.log && cat build.log >> '$INSTALL_ROOT/build.log'"
|
|
|
|
|
|
|
|
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null
|
|
|
|
assert_success
|
|
|
|
|
|
|
|
assert_build_log <<OUT
|
2017-09-10 22:02:15 -04:00
|
|
|
Python-3.6.2: CPPFLAGS="-I${TMP}/install/include " LDFLAGS="-L${TMP}/install/lib "
|
|
|
|
Python-3.6.2: --prefix=$INSTALL_ROOT --enable-unicode=ucs2 --libdir=$INSTALL_ROOT/lib
|
2016-02-14 19:40:07 -05:00
|
|
|
make -j 2
|
|
|
|
make install
|
|
|
|
OUT
|
|
|
|
|
|
|
|
unstub make
|
2021-09-20 00:43:08 -04:00
|
|
|
unstub uname
|
2016-02-14 19:40:07 -05:00
|
|
|
}
|
|
|
|
|
2015-06-28 00:49:53 -04:00
|
|
|
@test "default MACOSX_DEPLOYMENT_TARGET" {
|
2016-10-04 20:32:33 -04:00
|
|
|
# yyuu/pyenv#257
|
|
|
|
stub uname '-s : echo Darwin'
|
|
|
|
|
2015-06-28 00:49:53 -04:00
|
|
|
stub uname '-s : echo Darwin'
|
|
|
|
stub sw_vers '-productVersion : echo 10.10'
|
|
|
|
|
|
|
|
TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
echo "\${MACOSX_DEPLOYMENT_TARGET}"
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
assert_output "10.10"
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "use custom MACOSX_DEPLOYMENT_TARGET if defined" {
|
2016-10-04 20:32:33 -04:00
|
|
|
# yyuu/pyenv#257
|
|
|
|
stub uname '-s : echo Darwin'
|
|
|
|
|
2015-06-28 00:49:53 -04:00
|
|
|
stub uname '-s : echo Darwin'
|
|
|
|
|
|
|
|
MACOSX_DEPLOYMENT_TARGET="10.4" TMPDIR="$TMP" run_inline_definition <<OUT
|
|
|
|
echo "\${MACOSX_DEPLOYMENT_TARGET}"
|
|
|
|
OUT
|
|
|
|
assert_success
|
|
|
|
assert_output "10.4"
|
|
|
|
}
|
2018-03-28 20:58:06 -04:00
|
|
|
|
|
|
|
@test "use the default EZ_SETUP_URL by default" {
|
|
|
|
run_inline_definition <<OUT
|
|
|
|
echo "\${EZ_SETUP_URL}"
|
|
|
|
OUT
|
|
|
|
assert_output "https://bootstrap.pypa.io/ez_setup.py"
|
|
|
|
assert_success
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "use the default GET_PIP_URL by default" {
|
|
|
|
run_inline_definition <<OUT
|
|
|
|
echo "\${GET_PIP_URL}"
|
|
|
|
OUT
|
|
|
|
assert_output "https://bootstrap.pypa.io/get-pip.py"
|
|
|
|
assert_success
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "use the custom GET_PIP_URL for 2.6 versions" {
|
|
|
|
run_inline_definition_with_name --name=2.6 <<OUT
|
|
|
|
echo "\${GET_PIP_URL}"
|
|
|
|
OUT
|
2021-03-08 07:02:52 -05:00
|
|
|
assert_output "https://bootstrap.pypa.io/pip/2.6/get-pip.py"
|
2018-03-28 20:58:06 -04:00
|
|
|
assert_success
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "use the custom GET_PIP_URL for 3.2 versions" {
|
|
|
|
run_inline_definition_with_name --name=3.2 <<OUT
|
|
|
|
echo "\${GET_PIP_URL}"
|
|
|
|
OUT
|
2021-03-08 07:02:52 -05:00
|
|
|
assert_output "https://bootstrap.pypa.io/pip/3.2/get-pip.py"
|
2018-03-28 20:58:06 -04:00
|
|
|
assert_success
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "use the custom GET_PIP_URL for 3.3 versions" {
|
|
|
|
run_inline_definition_with_name --name=3.3 <<OUT
|
|
|
|
echo "\${GET_PIP_URL}"
|
|
|
|
OUT
|
2021-03-08 07:02:52 -05:00
|
|
|
assert_output "https://bootstrap.pypa.io/pip/3.3/get-pip.py"
|
2018-03-28 20:58:06 -04:00
|
|
|
assert_success
|
|
|
|
}
|