From 44d952d5aed2eeb198c0fc7f94773d7cb9bf4495 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 8 Nov 2024 11:27:50 -0500 Subject: [PATCH] find python --- .readthedocs.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 20ed86a2..b427038b 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,10 +9,12 @@ build: - asdf plugin add uv - asdf install uv latest - asdf global uv latest - - uv venv $READTHEDOCS_VIRTUALENV_PATH - # Turn `python -m [pip|virtualenv]` into `python -c pass` - - truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/{pip,virtualenv}.py + # Turn `python -m virtualenv` into `python -c pass` + - truncate --size 0 $( dirname $( uv python find ) )../lib/python3*/site-packages/virtualenv/__main__.py post_create_environment: + - uv venv $READTHEDOCS_VIRTUALENV_PATH + # Turn `python -m pip` into `python -c pass` + - truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/pip.py - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install -n --upgrade sphinx post_install: - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install -n -r docs/requirements.txt