#!/usr/bin/env bash
# WSL — git clone + venv + pip (PowerShell 때랑 동일 흐름)
set -euo pipefail
cd ~
sudo apt-get update
sudo apt-get install -y git python3.12 python3.12-venv python3-pip
[[ -d kis_bot/.git ]] || git clone ssh://git@192.168.0.141:30009/hoon/kis_bot.git kis_bot
cd kis_bot
python3.12 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -r requirements.txt pymysql
echo "끝. .env 만 있으면 실행: source .venv/bin/activate && python3 kis_trader/main.py"
