From fc49f7e21e379393841066810a9d78ee070447eb Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 11 Dec 2014 22:35:12 +0900 Subject: [PATCH] Fix building _dev_ versions --- plugins/python-build/bin/python-build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index ab117345..87ff4e90 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1775,11 +1775,17 @@ python_bin_suffix() { case "$1" in 2.* | 3.* ) version_name="$1" + version_name="${version_name%-dev}" + version_name="${version_name%-rc*}" + version_name="${version_name%rc*}" version_info=(${version_name//./ }) echo "${version_info[0]}.${version_info[1]}" ;; stackless-2.* | stackless-3.* ) version_name="${1#stackless-}" + version_name="${version_name%-dev}" + version_name="${version_name%-rc*}" + version_name="${version_name%rc*}" version_info=(${version_name//./ }) echo "${version_info[0]}.${version_info[1]}" ;;