forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Build] Add install_requirements.bat for windows build (pytorch#4862)
Add install_requirements.bat on windows like install_requirements.sh. Also force use ClangCL on windows in install_requirements.py. For pytorch#4661
- Loading branch information
1 parent
c7bc7e0
commit ee6e4e9
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@ECHO OFF | ||
|
||
rem Copyright (c) Meta Platforms, Inc. and affiliates. | ||
rem All rights reserved. | ||
|
||
rem This batch file provides a basic functionality similar to the bash script. | ||
|
||
cd /d "%~dp0" | ||
|
||
rem Find the names of the python tools to use (replace with your actual python installation) | ||
if "%PYTHON_EXECUTABLE%"=="" ( | ||
if "%CONDA_DEFAULT_ENV%"=="" OR "%CONDA_DEFAULT_ENV%"=="base" OR NOT EXIST "python" ( | ||
set PYTHON_EXECUTABLE=python3 | ||
) else ( | ||
set PYTHON_EXECUTABLE=python | ||
) | ||
) | ||
|
||
"%PYTHON_EXECUTABLE%" install_requirements.py %* | ||
|
||
exit /b %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters