This repository has been archived on 2024-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
asdf-python/bin/list-all
2016-08-30 15:25:56 +09:00

17 lines
448 B
Bash
Executable file

#!/usr/bin/env bash
list_all() {
local tmp_download_dir="$(mktemp -d -t asdf-python.XXX)"
download_python_build $tmp_download_dir > /dev/null 2>&1
local python_build="$tmp_download_dir/pyenv/plugins/python-build/bin/python-build"
$python_build --definitions
rm -rf "$tmp_download_dir"
}
download_python_build() {
local tmp_dir="$1"
local pyenv_url="git://github.com/yyuu/pyenv.git"
git clone $pyenv_url $tmp_dir/pyenv
}
list_all