Fix pyenv Python path resolution in setup.sh
Use `pyenv which python` instead of hardcoded path to handle version mapping (3.12 -> 3.12.12). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -220,7 +220,9 @@ fi
|
|||||||
echo -e "${GREEN}[6/11]${NC} Creating Python virtual environment..."
|
echo -e "${GREEN}[6/11]${NC} Creating Python virtual environment..."
|
||||||
|
|
||||||
# Create venv with pyenv Python (not system Python)
|
# Create venv with pyenv Python (not system Python)
|
||||||
PYENV_PYTHON="$HOME/.pyenv/versions/$PYTHON_VERSION/bin/python"
|
# Use pyenv which to get actual path (handles 3.12 -> 3.12.12 mapping)
|
||||||
|
PYENV_PYTHON=$(pyenv which python)
|
||||||
|
echo " Using Python: $PYENV_PYTHON"
|
||||||
if [ ! -d "venv" ]; then
|
if [ ! -d "venv" ]; then
|
||||||
"$PYENV_PYTHON" -m venv venv
|
"$PYENV_PYTHON" -m venv venv
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user