Skip to content

Commit 78e0b05

Browse files
committed
find python
1 parent e48681c commit 78e0b05

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.readthedocs.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ build:
99
- asdf plugin add uv
1010
- asdf install uv latest
1111
- asdf global uv latest
12-
- uv venv $READTHEDOCS_VIRTUALENV_PATH
13-
# Turn `python -m [pip|virtualenv]` into `python -c pass`
14-
- truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/{pip,virtualenv}.py
12+
# Turn `python -m virtualenv` into `python -c pass`
13+
- truncate --size 0 $( dirname $( uv python find ) )/../lib/python3*/site-packages/virtualenv/__main__.py
1514
post_create_environment:
15+
- uv venv $READTHEDOCS_VIRTUALENV_PATH
16+
# Turn `python -m pip` into `python -c pass`
17+
- truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/pip.py
1618
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install -n --upgrade sphinx
1719
post_install:
1820
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install -n -r docs/requirements.txt

0 commit comments

Comments
 (0)