xref: /aosp_15_r20/external/executorch/install_requirements.bat (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1@ECHO OFF
2
3rem Copyright (c) Meta Platforms, Inc. and affiliates.
4rem All rights reserved.
5
6rem This batch file provides a basic functionality similar to the bash script.
7
8cd /d "%~dp0"
9
10rem Find the names of the python tools to use (replace with your actual python installation)
11if "%PYTHON_EXECUTABLE%"=="" (
12  if "%CONDA_DEFAULT_ENV%"=="" OR "%CONDA_DEFAULT_ENV%"=="base" OR NOT EXIST "python" (
13    set PYTHON_EXECUTABLE=python3
14  ) else (
15    set PYTHON_EXECUTABLE=python
16  )
17)
18
19"%PYTHON_EXECUTABLE%" install_requirements.py %*
20
21exit /b %ERRORLEVEL%