Skip to content

Commit 96c8878

Browse files
authored
Don't use nightly_defaults.bat from builder (#439)
1 parent 109bfd4 commit 96c8878

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

windows/internal/build_conda.bat

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,5 @@ if errorlevel 1 exit /b 1
55
call windows/internal/cuda_install.bat
66
if errorlevel 1 exit /b 1
77

8-
call windows/internal/nightly_defaults.bat Conda
9-
if errorlevel 1 exit /b 1
10-
11-
set PYTORCH_FINAL_PACKAGE_DIR=%CD%\windows\output
12-
if not exist "%PYTORCH_FINAL_PACKAGE_DIR%" mkdir %PYTORCH_FINAL_PACKAGE_DIR%
13-
148
bash ./conda/build_pytorch.sh %CUDA_VERSION% %PYTORCH_BUILD_VERSION% %PYTORCH_BUILD_NUMBER%
159
if errorlevel 1 exit /b 1

windows/internal/build_wheels.bat

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ if errorlevel 1 exit /b 1
55
call windows/internal/cuda_install.bat
66
if errorlevel 1 exit /b 1
77

8-
call windows/internal/nightly_defaults.bat Wheels
9-
if errorlevel 1 exit /b 1
10-
118
call windows/build_pytorch.bat %CUDA_VERSION% %PYTORCH_BUILD_VERSION% %PYTORCH_BUILD_NUMBER%
129
if errorlevel 1 exit /b 1

windows/internal/setup.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ IF "%DEBUG%" == "" (
7575
7z a -tzip "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" libtorch\*
7676

7777
if not exist ..\output mkdir ..\output
78-
copy /Y "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" ..\output\
79-
copy /Y "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" ..\output\%LIBTORCH_PREFIX%-latest.zip
78+
copy /Y "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" "%PYTORCH_FINAL_PACKAGE_DIR%\"
79+
copy /Y "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" "%PYTORCH_FINAL_PACKAGE_DIR%\%LIBTORCH_PREFIX%-latest.zip"
8080

8181
goto build_end
8282

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

8787
:build_end
8888
IF ERRORLEVEL 1 exit /b 1

0 commit comments

Comments
 (0)