mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Fix building _dev_ versions
This commit is contained in:
parent
be4f5992d6
commit
fc49f7e21e
1 changed files with 6 additions and 0 deletions
|
@ -1775,11 +1775,17 @@ python_bin_suffix() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
2.* | 3.* )
|
2.* | 3.* )
|
||||||
version_name="$1"
|
version_name="$1"
|
||||||
|
version_name="${version_name%-dev}"
|
||||||
|
version_name="${version_name%-rc*}"
|
||||||
|
version_name="${version_name%rc*}"
|
||||||
version_info=(${version_name//./ })
|
version_info=(${version_name//./ })
|
||||||
echo "${version_info[0]}.${version_info[1]}"
|
echo "${version_info[0]}.${version_info[1]}"
|
||||||
;;
|
;;
|
||||||
stackless-2.* | stackless-3.* )
|
stackless-2.* | stackless-3.* )
|
||||||
version_name="${1#stackless-}"
|
version_name="${1#stackless-}"
|
||||||
|
version_name="${version_name%-dev}"
|
||||||
|
version_name="${version_name%-rc*}"
|
||||||
|
version_name="${version_name%rc*}"
|
||||||
version_info=(${version_name//./ })
|
version_info=(${version_name//./ })
|
||||||
echo "${version_info[0]}.${version_info[1]}"
|
echo "${version_info[0]}.${version_info[1]}"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue