forked from zackees/transcribe-anything
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·39 lines (32 loc) · 1.05 KB
/
install
File metadata and controls
executable file
·39 lines (32 loc) · 1.05 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
#!/bin/bash
#==============================================================================
# UV Environment Setup for transcribe-anything
# Creates Python 3.11 venv, installs dependencies, creates activation symlinks
#==============================================================================
# Enable error handling and command tracing
set -e
set -x
# Create virtual environment and install dependencies
uv venv --python 3.11
uv pip install -r requirements.testing.txt
uv pip install -e . --refresh-package uv-iso-env
# Finalize installation
uv run python -c "import os; _ = os.getcwd()"
set +e
# Remove existing activation symlink
if [ -f activate ]; then
rm activate
fi
# Create platform-specific activation symlink
if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "darwin"* ]]; then
ln -s .venv/bin/activate activate
else
ln -s .venv/Scripts/activate activate
fi
# Windows compatibility: link bin -> Scripts
if [[ "$OSTYPE" == "msys" ]]; then
if [ -d .venv/bin ]; then
rm -rf .venv/Scripts
ln -s bin .venv/Scripts
fi
fi