-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (46 loc) · 1.47 KB
/
Copy pathsetup.py
File metadata and controls
54 lines (46 loc) · 1.47 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
#!/usr/bin/env python3
"""Cross-platform setup script for Language Learning Assistant."""
import subprocess
import sys
import os
def main():
print("=" * 43)
print(" Language Learning Assistant Setup")
print("=" * 43)
print()
# Check Python version
if sys.version_info < (3, 8):
print(f"Error: Python 3.8+ required, found {sys.version}")
print(" https://www.python.org/downloads/")
sys.exit(1)
print(f"Found: Python {sys.version.split()[0]}")
# Install dependencies
print()
print("Installing dependencies...")
subprocess.check_call(
[sys.executable, "-m", "pip", "install", "--upgrade", "pip", "-q"],
stdout=subprocess.DEVNULL,
)
subprocess.check_call(
[sys.executable, "-m", "pip", "install", "-r", "requirements.txt", "-q"]
)
print("Dependencies installed.")
# Create directory structure
print()
print("Creating directories...")
os.makedirs(os.path.join("materials", "input"), exist_ok=True)
os.makedirs(os.path.join("materials", "chapters"), exist_ok=True)
print("Directory structure ready.")
# Done
print()
print("=" * 43)
print(" Setup complete!")
print("=" * 43)
print()
print("Next steps:")
print(" 1. Place your learning materials in materials/input/")
print(" 2. Open Claude Code and run /process-material")
print(" 3. Then run /learn-language to start learning")
print()
if __name__ == "__main__":
main()