Skip to content

Commit 9cdd00e

Browse files
committed
try to generate ffi bindings in RTD
1 parent 9d04dc2 commit 9cdd00e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212

1313
import os
14+
import subprocess
1415
import sys
1516
from distutils.sysconfig import get_python_lib
1617

@@ -19,8 +20,10 @@
1920

2021

2122
if os.environ.get("READTHEDOCS") == "True":
22-
# we need to add ffmpeg to the path
2323
site_path = get_python_lib()
24+
# bindings for pangocffi need to be generated
25+
subprocess.run(["python", "pangocffi/ffi_build.py"], cwd=site_path)
26+
# we need to add ffmpeg to the path
2427
ffmpeg_path = os.path.join(site_path, "imageio_ffmpeg", "binaries")
2528
# the included binary is named ffmpeg-linux..., create a symlink
2629
[ffmpeg_bin] = [

0 commit comments

Comments
 (0)