未验证 提交 875277e8 编写于 作者: K Kaipeng Deng 提交者: GitHub

polish version log in build_wheel.sh (#3095)

上级 d2e429e4
......@@ -133,11 +133,23 @@ build_and_install
unittest
cleanup
# get Paddle version
PADDLE_VERSION=`python -c "import paddle; print(paddle.version.full_version)"`
PADDLE_COMMIT=`python -c "import paddle; print(paddle.version.commit)"`
PADDLE_COMMIT=`git rev-parse --short $PADDLE_COMMIT`
# get PaddleDetection branch
PPDET_BRANCH=`git rev-parse --abbrev-ref HEAD`
PPDET_COMMIT=`git rev-parse --short HEAD`
# get Python version
PYTHON_VERSION=`python -c "import platform; print(platform.python_version())"`
echo -e "\n${GREEN}paddledet wheel compiled and checked success !${NONE}
${BLUE}paddle version:${NONE} $PADDLE_VERSION
${BLUE}paddle commit:${NONE} $PADDLE_COMMIT\n"
${BLUE}Python version:${NONE} $PYTHON_VERSION
${BLUE}Paddle version:${NONE} $PADDLE_VERSION ($PADDLE_COMMIT)
${BLUE}PaddleDetection branch:${NONE} $PPDET_BRANCH ($PPDET_COMMIT)\n"
echo -e "${GREEN}wheel saved under${NONE} ${RED}${BOLD}./dist"
trap : 0
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册