提交 6b843ccd 编写于 作者: T Tricster 提交者: Megvii Engine Team

fix(mge): macos whl build

From GITHUB 168

COPYBARA_INTEGRATE_REVIEW=https://api.github.com/repos/MegEngine/MegEngine/pulls/168 from Tricster <mediosrity@gmail.com> 5c775d02dd0b8f20b5acc6b400cf722e92f2e86b
Closes #168
GitOrigin-RevId: bceecb401b4bf5f6cfd47bb7f7216ec36ef1cae8
上级 b74afde8
......@@ -2,6 +2,7 @@
READLINK=readlink
OS=$(uname -s)
USER=$(whoami)
if [ $OS = "Darwin" ];then
READLINK=greadlink
......
......@@ -46,21 +46,19 @@ SRC_DIR=$($READLINK -f "`dirname $0`/../../../")
echo ${SRC_DIR}
ALL_PYTHON="3.5.9 3.6.10 3.7.7 3.8.3"
USER=$(whoami)
function install_python_package() {
for pak in ${ALL_PYTHON}
do
echo "###### do command: env PYTHON_CONFIGURE_OPTS=\"--enable-shared\" pyenv install ${pak}"
if [ -e /Users/$USER/.pyenv/versions/${pak} ];then
echo "FOUND install /Users/$USER/.pyenv/versions/${pak} strip it..."
if [ -e /Users/${USER}/.pyenv/versions/${pak} ];then
echo "FOUND install /Users/${USER}/.pyenv/versions/${pak} strip it..."
else
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install ${pak}
fi
echo "###### do command: /Users/${USER}/.pyenv/versions/${pak}/bin/python3 -m pip install numpy wheel requests tqdm tabulate"
/Users/${USER}/.pyenv/versions/${pak}/bin/python3 -m pip install numpy wheel
echo "###### do command: /Users/${USER}/.pyenv/versions/${pak}/bin/python3 -m pip install -r ${SRC_DIR}/python_module/requires-test.txt"
/Users/${USER}/.pyenv/versions/${pak}/bin/python3 -m pip install -r ${SRC_DIR}/python_module/requires-test.txt
echo "###### do command: /Users/$USER/.pyenv/versions/${pak}/bin/python3 -m pip install -r ${SRC_DIR}/imperative/python/requires.txt"
/Users/$USER/.pyenv/versions/${pak}/bin/python3 -m pip install -r ${SRC_DIR}/imperative/python/requires.txt
done
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册