提交 12f033df 编写于 作者: A Amit Patankar 提交者: GitHub

Merge pull request #10710 from av8ramit/fix_numpy

Avoid upgrading tensorFlow dependencies when running windows tests. (…
......@@ -208,5 +208,5 @@ function create_python_test_dir() {
function reinstall_tensorflow_pip() {
echo "y" | pip uninstall tensorflow -q || true
pip install ${1}
pip install ${1} --no-deps
}
......@@ -29,9 +29,6 @@ IF DEFINED PIP_EXE (ECHO PIP_EXE is set to %PIP_EXE%) ELSE (SET PIP_EXE="C:\Prog
CALL %REPO_ROOT%\tensorflow\tools\ci_build\windows\cpu\cmake\run_build.bat
if %errorlevel% neq 0 exit /b %errorlevel%
:: Attempt to upgrade PIP to work around Anaconda issue #542.
%PIP_EXE% install --ignore-installed --upgrade pip setuptools -v -v
:: Since there are no wildcards in windows command prompt, use dark magic to get the wheel file name.
DIR %REPO_ROOT%\%BUILD_DIR%\tf_python\dist\ /S /B > wheel_filename_file
set /p WHEEL_FILENAME=<wheel_filename_file
......@@ -39,7 +36,7 @@ del wheel_filename_file
:: Install the pip package.
echo Installing PIP package...
%PIP_EXE% install --upgrade %WHEEL_FILENAME% -v -v
%PIP_EXE% install --upgrade --no-deps %WHEEL_FILENAME% -v -v
if %errorlevel% neq 0 exit /b %errorlevel%
:: Run all python tests if the installation succeeded.
......
......@@ -28,9 +28,6 @@ IF DEFINED PIP_EXE (ECHO PIP_EXE is set to %PIP_EXE%) ELSE (SET PIP_EXE="C:\Prog
CALL %REPO_ROOT%\tensorflow\tools\ci_build\windows\gpu\cmake\run_build.bat
if %errorlevel% neq 0 exit /b %errorlevel%
:: Attempt to upgrade PIP to work around Anaconda issue #542.
%PIP_EXE% install --ignore-installed --upgrade pip setuptools -v -v
:: Since there are no wildcards in windows command prompt, use dark magic to get the wheel file name.
DIR %REPO_ROOT%\%BUILD_DIR%\tf_python\dist\ /S /B > wheel_filename_file
set /p WHEEL_FILENAME=<wheel_filename_file
......@@ -38,7 +35,7 @@ del wheel_filename_file
:: Install the pip package.
echo Installing PIP package...
%PIP_EXE% install --upgrade %WHEEL_FILENAME% -v -v
%PIP_EXE% install --upgrade --no-deps %WHEEL_FILENAME% -v -v
if %errorlevel% neq 0 exit /b %errorlevel%
:: Run all python tests if the installation succeeded.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册