Skip to content

Commit b4dee87

Browse files
authored
Fix docs build for PDM again (#175)
1 parent 5fba634 commit b4dee87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.readthedocs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ build:
99
python: "3.8"
1010
jobs:
1111
post_install:
12-
- pip install --upgrade pdm
12+
# Install PDM in its own isolated environment, so docs deps don't trample its deps
13+
- curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
14+
# TODO how to get `pdm` on the $PATH?
1315
# https://github.com/pdm-project/pdm/discussions/1365#discussioncomment-3581356
1416
# NOTE: pandoc fails in isolation mode
15-
- VIRTUAL_ENV=$(dirname $(dirname $(which python))) pdm install --no-isolation -G viz -dG docs
17+
- VIRTUAL_ENV=$(dirname $(dirname $(which python))) $HOME/.local/bin/pdm sync --no-isolation -G viz -dG docs

0 commit comments

Comments
 (0)