Skip to content

Commit

Permalink
Don't use nightly_defaults.bat from builder (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc123 authored Apr 14, 2020
1 parent 109bfd4 commit 96c8878
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
6 changes: 0 additions & 6 deletions windows/internal/build_conda.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,5 @@ if errorlevel 1 exit /b 1
call windows/internal/cuda_install.bat
if errorlevel 1 exit /b 1

call windows/internal/nightly_defaults.bat Conda
if errorlevel 1 exit /b 1

set PYTORCH_FINAL_PACKAGE_DIR=%CD%\windows\output
if not exist "%PYTORCH_FINAL_PACKAGE_DIR%" mkdir %PYTORCH_FINAL_PACKAGE_DIR%

bash ./conda/build_pytorch.sh %CUDA_VERSION% %PYTORCH_BUILD_VERSION% %PYTORCH_BUILD_NUMBER%
if errorlevel 1 exit /b 1
3 changes: 0 additions & 3 deletions windows/internal/build_wheels.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ if errorlevel 1 exit /b 1
call windows/internal/cuda_install.bat
if errorlevel 1 exit /b 1

call windows/internal/nightly_defaults.bat Wheels
if errorlevel 1 exit /b 1

call windows/build_pytorch.bat %CUDA_VERSION% %PYTORCH_BUILD_VERSION% %PYTORCH_BUILD_NUMBER%
if errorlevel 1 exit /b 1
6 changes: 3 additions & 3 deletions windows/internal/setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ IF "%DEBUG%" == "" (
7z a -tzip "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" libtorch\*

if not exist ..\output mkdir ..\output
copy /Y "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" ..\output\
copy /Y "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" ..\output\%LIBTORCH_PREFIX%-latest.zip
copy /Y "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" "%PYTORCH_FINAL_PACKAGE_DIR%\"
copy /Y "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" "%PYTORCH_FINAL_PACKAGE_DIR%\%LIBTORCH_PREFIX%-latest.zip"

goto build_end

:pytorch
:: This stores in e.g. D:/_work/1/s/windows/output/cpu
pip wheel -vvv -e . --no-deps --wheel-dir ../output
pip wheel -vvv -e . --no-deps --wheel-dir "%PYTORCH_FINAL_PACKAGE_DIR%"

:build_end
IF ERRORLEVEL 1 exit /b 1
Expand Down

0 comments on commit 96c8878

Please sign in to comment.