-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: switch back to libclang to avoid hardcoding LLVM version #72
Conversation
The libclang package has an embedded copy of libclang, which allows us to avoid requiring the system to have a particular clang version. This didn't work before because the lib_search_dirs logic in conf.py was clobbering a working path with a broken one. That logic is no longer needed, so just remove it.
Oh nice. Let's try this! |
Sadly this breaks on readthedocs with what looks like a clang14 / clang16 mismatch error:
The build error report says:
|
Maybe |
Recent readthedocs builds are here: https://readthedocs.org/projects/libdicom/builds/ |
Oof. I wonder why it works on vanilla 22.04 and fails on ReadTheDocs. Maybe we can use a separate |
Yes, it's a bit annoying, I spent a morning getting readthedocs working :( I wish it was simpler. I'll revert this commit for now to get the docs building again. |
They have their build images here, fwiw: https://github.com/readthedocs/readthedocs-docker-images |
Second attempt in #74. |
The
libclang
package has an embedded copy of libclang, which allows us to avoid requiring the system to have a particular clang version. This didn't work before because thelib_search_dirs
logic inconf.py
was clobbering a working path with a broken one. That logic is no longer needed, so just remove it.Tested on Fedora 38 and Ubuntu 22.04, but not specifically tested with Read the Docs.