Skip to content

Commit

Permalink
Merge pull request tensorflow#10710 from av8ramit/fix_numpy
Browse files Browse the repository at this point in the history
Avoid upgrading tensorFlow dependencies when running windows tests. (…
  • Loading branch information
Amit Patankar authored Jun 14, 2017
2 parents 7dedb5a + 1c05e8d commit 12f033d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tensorflow/tools/ci_build/windows/bazel/bazel_test_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 1 addition & 4 deletions tensorflow/tools/ci_build/windows/cpu/cmake/run_py.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,14 @@ 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
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.
Expand Down
5 changes: 1 addition & 4 deletions tensorflow/tools/ci_build/windows/gpu/cmake/run_py.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@ 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
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.
Expand Down

0 comments on commit 12f033d

Please sign in to comment.