未验证 提交 895f207c 编写于 作者: D Daniel Larimer 提交者: GitHub

Merge pull request #1960 from pacificcode/eosio_build_darwin_python

Eosio build darwin python3
......@@ -42,7 +42,6 @@
txtrst=$(tput sgr0)
DISK_MIN=20
PYTHON_MIN=3
printf "\n\tBeginning build version: ${VERSION}\n"
printf "\t$( date -u )\n"
......
......@@ -119,10 +119,10 @@
IFS=${var_ifs}
printf "\tChecking Python3 ... "
if [ `python --version | tr - ' ' | cut -d ' ' -f2 | cut -d'.' -f1` != ${PYTHON_MIN} ]; then
DEP=$DEP"python@${PYTHON_MIN} "
if [ -z `python3 -c 'import sys; print(sys.version_info.major)' 2>/dev/null` ]; then
DEP=$DEP"python@3 "
DISPLAY="${DISPLAY}${COUNT}. Python 3\n\t"
printf "\t\t python${PYTHON_MIN} ${bldred}NOT${txtrst} found.\n"
printf "\t\t python3 ${bldred}NOT${txtrst} found.\n"
let DCOUNT++
else
printf "\t\t Python3 found\n"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册