asdf-python/bin/install

20 lines
500 B
Bash
Executable file

#!/usr/bin/env bash
source $(dirname $0)/utils.sh
install_python() {
local version="$1"
local install_path="$2"
local tmp_dir="$(mktemp -d -t asdf-python.XXX)"
ensure_python_build_installed
ASDF_CONCURRENCY="${ASDF_CONCURRENCY:-1}"
echo "python-build $version $install_path"
MAKE_OPTS="$MAKE_OPTS -j$ASDF_CONCURRENCY" TMP_DIR="$tmp_dir" $(python_build_path) $version $install_path
echo "Cleaning up"
rm -rf "$tmp_dir"
}
install_python $ASDF_INSTALL_VERSION $ASDF_INSTALL_PATH