Skip to content

Commit 38f7f0e

Browse files
committed
docs: fix doc build failures
For some reason, poetry does not install dependencies to the correct site-package. As a temporary fix, we can `pip freeze` the packages that poetry installs and reinstall them to the correct site-packages by directly using pip. Signed-off-by: Liam Brady <[email protected]>
1 parent c35a5f2 commit 38f7f0e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

readthedocs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ build:
88
# Install poetry
99
- pip install poetry~=1.2
1010
# Tell poetry to not use a virtual environment
11-
- poetry config virtualenvs.create false
11+
#- poetry config virtualenvs.create false
1212
post_install:
1313
# Install dependencies
1414
- poetry install --with doc
15+
# Why did poetry find and install to the wrong site-packages?
16+
#- python -c "import site; print(site.getsitepackages())"
17+
#- poetry run python -c "import site; print(site.getsitepackages())"
18+
# Install dependencies to the correct site-packages
19+
- poetry run pip freeze > reqs.txt
20+
- pip install --upgrade -r reqs.txt
1521
sphinx:
1622
configuration: doc/source/conf.py

0 commit comments

Comments
 (0)