未验证 提交 482f062d 编写于 作者: S Sing_chan 提交者: GitHub

move variable UPLOAD_TP_FILE to the beginning or it cant be initialized when...

move variable UPLOAD_TP_FILE to the beginning or it cant be initialized when running build-whl task (#35895)
上级 f67a50bd
......@@ -77,6 +77,7 @@ if not defined retry_times set retry_times=3
if not defined PYTHON_ROOT set PYTHON_ROOT=C:\Python37
if not defined BUILD_DIR set BUILD_DIR=build
set task_name=%1
set UPLOAD_TP_FILE=OFF
rem ------initialize the python environment------
set PYTHON_EXECUTABLE=%PYTHON_ROOT%\python.exe
......@@ -382,7 +383,6 @@ if "%WITH_GPU%"=="ON" (
)
set THIRD_PARTY_HOME=%cache_dir:\=/%/third_party/%sub_dir%
set THIRD_PARTY_PATH=%THIRD_PARTY_HOME%/%md5%
set UPLOAD_TP_FILE=OFF
if not exist %THIRD_PARTY_PATH% (
echo There is no usable third_party cache in %THIRD_PARTY_PATH%, will download from bos.
......@@ -521,8 +521,8 @@ if %ERRORLEVEL% NEQ 0 (
)
)
set BCE_FILE=%cache_dir%\bce-python-sdk-0.8.33\BosClient.py
if %UPLOAD_TP_FILE%==ON (
if "%UPLOAD_TP_FILE%"=="ON" (
set BCE_FILE=%cache_dir%\bce-python-sdk-0.8.33\BosClient.py
echo Uploading third_party: checking bce ...
if not exist %cache_dir%\bce-python-sdk-0.8.33 (
echo There is no bce in this PC, will install bce.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册