Skip to content

Commit

Permalink
Disable ffmpeg by default
Browse files Browse the repository at this point in the history
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
  • Loading branch information
seemethere committed Dec 4, 2020
1 parent 6387d23 commit a375673
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ def get_extensions():
))

ffmpeg_exe = distutils.spawn.find_executable('ffmpeg')
has_ffmpeg = ffmpeg_exe is not None
# Disable ffmpeg by default
no_ffmpeg = os.environ.get("NO_FFMPEG", True)
has_ffmpeg = ffmpeg_exe is not None and not no_ffmpeg
print("FFmpeg found: {}".format(has_ffmpeg))

if has_ffmpeg:
Expand Down

0 comments on commit a375673

Please sign in to comment.