Skip to content

Commit 59ad9b2

Browse files
committed
doc: avoid python.system_packages=true in .readthedocs.yaml
Apparently python.system_packages=true is problematic in the RTD environment [1]. Install libclang-14-dev from apt and clang from pip, using specific versions for both. Attempt to install clang using build.jobs.post_install instead of a requirements.txt to avoid defining the version in two different files. Fingers crossed. [1] readthedocs/readthedocs.org#10500
1 parent 719e7bd commit 59ad9b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ build:
66
tools:
77
python: "3.11"
88
apt_packages:
9-
- python3-clang
9+
- libclang-14-dev
10+
jobs:
11+
post_install:
12+
- python -m pip install --upgrade --no-cache-dir clang==14.0.6
1013

1114
python:
1215
install:
1316
- method: pip
1417
path: .
15-
system_packages: true
1618

1719
formats: all
1820

0 commit comments

Comments
 (0)