mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
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:
parent
748de4af7e
commit
092555adc7
3 changed files with 1 additions and 15 deletions
|
|
@ -3,6 +3,7 @@ build:
|
|||
image: latest
|
||||
apt_packages:
|
||||
- libpango1.0-dev
|
||||
- ffmpeg
|
||||
python:
|
||||
version: 3.8
|
||||
install:
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
imageio-ffmpeg
|
||||
jupyterlab
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue