"git@developer.sourcefind.cn:one/TransferBench.git" did not exist on "6ef59d1257e3af27b8ea7175bda42264f01b74a7"
Unverified Commit 074adabe authored by vcarpani's avatar vcarpani Committed by GitHub
Browse files

Add flag to ignore ffmpeg in python build. (#6199)



* Add flag to ignore ffmpeg in python build.

* Update setup.py to avoid potential collisions with other projects that are using FFMPEG
Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
parent 32e63417
...@@ -356,6 +356,8 @@ def get_extensions(): ...@@ -356,6 +356,8 @@ def get_extensions():
print("Error fetching ffmpeg version, ignoring ffmpeg.") print("Error fetching ffmpeg version, ignoring ffmpeg.")
has_ffmpeg = False has_ffmpeg = False
use_ffmpeg = os.getenv("TORCHVISION_USE_FFMPEG", "1") == "1"
has_ffmpeg = has_ffmpeg and use_ffmpeg
print(f"FFmpeg found: {has_ffmpeg}") print(f"FFmpeg found: {has_ffmpeg}")
if has_ffmpeg: if has_ffmpeg:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment