ImagingDataCommons / libdicom

C library for reading DICOM files
https://libdicom.readthedocs.io
MIT License
15 stars 7 forks source link

doc: use a separate `requirements-rtd.txt` for Read the Docs #74

Closed bgilbert closed 9 months ago

bgilbert commented 9 months ago

RTD apparently tries to use the Ubuntu libclang.so even though the libclang Python package provides its own copy. A docs build on vanilla Ubuntu 22.04 doesn't, and it's not clear why. Since pinning to an older clang Python package is known to work, use that approach in a separate requirements-rtd.txt.

Install the libclang-dev package in RTD to get the libclang.so symlink, so we don't have to reinstate the search logic in conf.py.

jcupitt commented 9 months ago

Ahh I hadn't thought how easy it was to have a separate requirements for rtd, nice.

jcupitt commented 9 months ago

And the rtd build worked \o/