-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_with_uv.bat
More file actions
71 lines (62 loc) · 2.18 KB
/
install_with_uv.bat
File metadata and controls
71 lines (62 loc) · 2.18 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@echo off
REM RAPiD Installation Script with uv for Windows
REM This script installs RAPiD using uv package manager
REM
REM IMPORTANT: This project is NOT published to official package repositories.
REM Local source installation is the ONLY supported method.
echo 🚀 Installing RAPiD with uv package manager...
echo.
echo ⚠️ IMPORTANT: This project is NOT published to PyPI, conda-forge, etc.
echo Local source installation is the ONLY supported method.
echo ❌ pip install rapid-seg will NOT work
echo ✅ uv pip install -e . IS the correct way
echo.
REM Check if uv is installed
uv --version >nul 2>&1
if %errorlevel% neq 0 (
echo 📦 uv not found. Installing uv...
powershell -Command "irm https://astral.sh/uv/install.ps1 | iex"
echo ✅ uv installed successfully!
) else (
echo ✅ uv is already installed
)
REM Check if we're in the right directory
if not exist "pyproject.toml" (
echo ❌ Error: pyproject.toml not found!
echo Please run this script from the rapid-seg project root directory
echo or clone the repository first:
echo git clone https://github.com/l1997i/rapid-seg.git
echo cd rapid-seg
echo install_with_uv.bat
pause
exit /b 1
)
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 RAPiD from source (ONLY method available)
echo 📥 Installing RAPiD from source...
uv pip install -e .
REM Install development dependencies (optional)
set /p dev_deps="🤔 Install development dependencies? (y/n): "
if /i "%dev_deps%"=="y" (
echo 📚 Installing development dependencies...
uv pip install -e ".[dev]"
)
echo 🎉 RAPiD installation completed!
echo.
echo 📋 To activate the environment in the future:
echo .venv\Scripts\activate.bat
echo.
echo 🧪 To run examples:
echo python examples\01_getting_started.py
echo.
echo 📖 For more information, see examples\README.md
echo.
echo ⚠️ Remember: This project can ONLY be installed from source!
echo ❌ pip install rapid-seg will NOT work
echo ✅ uv pip install -e . IS the correct way
pause