-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-env.bat
More file actions
40 lines (33 loc) · 974 Bytes
/
setup-env.bat
File metadata and controls
40 lines (33 loc) · 974 Bytes
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
39
40
@echo off
REM Setup script for glb-model-rotate UV environment (Windows)
echo Setting up glb-model-rotate Python environment with UV...
REM Check if UV is installed
where uv >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo UV is not installed. Installing UV...
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
echo Please restart your command prompt after installation
exit /b 1
)
echo UV version:
uv --version
REM Create virtual environment
echo Creating virtual environment...
uv venv
REM Activate virtual environment
echo Activating virtual environment...
call .venv\Scripts\activate.bat
REM Install dependencies
echo Installing dependencies...
uv pip install trimesh pymeshlab numpy
echo.
echo Setup complete!
echo.
echo To activate the environment in the future, run:
echo .venv\Scripts\activate.bat
echo.
echo To install development dependencies, run:
echo uv pip install pytest black ruff
echo.
echo Python scripts are ready to use!
echo.