2016-04-24 10:28:48 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
list_all() {
|
2016-08-30 07:25:56 +01:00
|
|
|
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"
|
2016-08-30 07:28:44 +01:00
|
|
|
$python_build --definitions | tr '\n' ' '
|
2016-08-30 07:25:56 +01:00
|
|
|
rm -rf "$tmp_download_dir"
|
|
|
|
}
|
2016-04-24 10:28:48 +01:00
|
|
|
|
2016-08-30 07:25:56 +01:00
|
|
|
download_python_build() {
|
|
|
|
local tmp_dir="$1"
|
|
|
|
local pyenv_url="git://github.com/yyuu/pyenv.git"
|
|
|
|
git clone $pyenv_url $tmp_dir/pyenv
|
2016-04-24 10:28:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
list_all
|