Skip to content

Commit 6fa92c9

Browse files
committed
Only install from PyPi on RTD_BUILD
Signed-off-by: Michael Dolan <[email protected]>
1 parent 4f51323 commit 6fa92c9

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/conf.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,15 @@
192192

193193
# Generate Doxygen XML
194194
subprocess.run(["doxygen", "Doxyfile"], check=True)
195+
196+
# -- Install PyOpenColorIO ----------------------------------------------------
197+
198+
# When building docs for Read the Docs, we won't have a local PyOpenColorIO
199+
# build to run autodoc for, so we instead install the specific version needed
200+
# from PyPi.
201+
202+
if RTD_BUILD:
203+
subprocess.run(
204+
[sys.executable, "-m", "pip", "install", f"opencolorio=={version}"],
205+
check=True
206+
)

docs/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ sphinx-press-theme
1212
sphinx-tabs
1313
breathe
1414
setuptools<68.0.0
15-
opencolorio

0 commit comments

Comments
 (0)