-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathinstall.bat
More file actions
38 lines (34 loc) · 1.28 KB
/
Copy pathinstall.bat
File metadata and controls
38 lines (34 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
REM ===========================================================================
REM One-time setup for the CAN bus reverse-engineering skills (Windows).
REM Creates a local virtual environment in .venv and installs requirements.
REM Safe to re-run; it will reuse / update the existing .venv.
REM ===========================================================================
setlocal
cd /d "%~dp0"
echo.
echo [1/3] Creating virtual environment in .venv ...
python -m venv .venv
if errorlevel 1 (
echo.
echo ERROR: could not create the virtual environment.
echo Make sure Python 3.10+ is installed and on your PATH ^(python --version^).
exit /b 1
)
echo.
echo [2/3] Upgrading pip ...
".venv\Scripts\python.exe" -m pip install --upgrade pip
echo.
echo [3/3] Installing dependencies from requirements.txt ...
".venv\Scripts\python.exe" -m pip install -r requirements.txt
if errorlevel 1 (
echo.
echo ERROR: dependency installation failed. See the messages above.
exit /b 1
)
echo.
echo ===========================================================================
echo Done. The environment is ready in .venv
echo Open Claude Code in this folder and ask it to reverse engineer a CAN signal.
echo ===========================================================================
endlocal