Made RTD apt install FFMPEG instead of installing a Python binding (#1896)

* Try to apt install ffmpeg instead

* remove symlink

* try
This commit is contained in:
Darylgolden 2021-08-12 20:48:23 +08:00 committed by GitHub
commit 092555adc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 15 deletions

View file

@ -3,6 +3,7 @@ build:
image: latest
apt_packages:
- libpango1.0-dev
- ffmpeg
python:
version: 3.8
install:

View file

@ -1,2 +1 @@
imageio-ffmpeg
jupyterlab

View file

@ -20,20 +20,6 @@ import manim
sys.path.insert(0, os.path.abspath("."))
if os.environ.get("READTHEDOCS") == "True":
site_path = get_python_lib()
# we need to add ffmpeg to the path
ffmpeg_path = os.path.join(site_path, "imageio_ffmpeg", "binaries")
# the included binary is named ffmpeg-linux..., create a symlink
[ffmpeg_bin] = [
file for file in os.listdir(ffmpeg_path) if file.startswith("ffmpeg-")
]
os.symlink(
os.path.join(ffmpeg_path, ffmpeg_bin), os.path.join(ffmpeg_path, "ffmpeg")
)
os.environ["PATH"] += os.pathsep + ffmpeg_path
# -- Project information -----------------------------------------------------
project = "Manim"