Skip to content

Commit 12f033d

Browse files
author
Amit Patankar
authored
Merge pull request tensorflow#10710 from av8ramit/fix_numpy
Avoid upgrading tensorFlow dependencies when running windows tests. (…
2 parents 7dedb5a + 1c05e8d commit 12f033d

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

tensorflow/tools/ci_build/windows/bazel/bazel_test_lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,5 @@ function create_python_test_dir() {
208208

209209
function reinstall_tensorflow_pip() {
210210
echo "y" | pip uninstall tensorflow -q || true
211-
pip install ${1}
211+
pip install ${1} --no-deps
212212
}

tensorflow/tools/ci_build/windows/cpu/cmake/run_py.bat

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,14 @@ IF DEFINED PIP_EXE (ECHO PIP_EXE is set to %PIP_EXE%) ELSE (SET PIP_EXE="C:\Prog
2929
CALL %REPO_ROOT%\tensorflow\tools\ci_build\windows\cpu\cmake\run_build.bat
3030
if %errorlevel% neq 0 exit /b %errorlevel%
3131

32-
:: Attempt to upgrade PIP to work around Anaconda issue #542.
33-
%PIP_EXE% install --ignore-installed --upgrade pip setuptools -v -v
34-
3532
:: Since there are no wildcards in windows command prompt, use dark magic to get the wheel file name.
3633
DIR %REPO_ROOT%\%BUILD_DIR%\tf_python\dist\ /S /B > wheel_filename_file
3734
set /p WHEEL_FILENAME=<wheel_filename_file
3835
del wheel_filename_file
3936

4037
:: Install the pip package.
4138
echo Installing PIP package...
42-
%PIP_EXE% install --upgrade %WHEEL_FILENAME% -v -v
39+
%PIP_EXE% install --upgrade --no-deps %WHEEL_FILENAME% -v -v
4340
if %errorlevel% neq 0 exit /b %errorlevel%
4441

4542
:: Run all python tests if the installation succeeded.

tensorflow/tools/ci_build/windows/gpu/cmake/run_py.bat

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,14 @@ IF DEFINED PIP_EXE (ECHO PIP_EXE is set to %PIP_EXE%) ELSE (SET PIP_EXE="C:\Prog
2828
CALL %REPO_ROOT%\tensorflow\tools\ci_build\windows\gpu\cmake\run_build.bat
2929
if %errorlevel% neq 0 exit /b %errorlevel%
3030

31-
:: Attempt to upgrade PIP to work around Anaconda issue #542.
32-
%PIP_EXE% install --ignore-installed --upgrade pip setuptools -v -v
33-
3431
:: Since there are no wildcards in windows command prompt, use dark magic to get the wheel file name.
3532
DIR %REPO_ROOT%\%BUILD_DIR%\tf_python\dist\ /S /B > wheel_filename_file
3633
set /p WHEEL_FILENAME=<wheel_filename_file
3734
del wheel_filename_file
3835

3936
:: Install the pip package.
4037
echo Installing PIP package...
41-
%PIP_EXE% install --upgrade %WHEEL_FILENAME% -v -v
38+
%PIP_EXE% install --upgrade --no-deps %WHEEL_FILENAME% -v -v
4239
if %errorlevel% neq 0 exit /b %errorlevel%
4340

4441
:: Run all python tests if the installation succeeded.

0 commit comments

Comments
 (0)