From ac4652418030c6194ba701c3d98091fd442fe7f4 Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Wed, 28 May 2025 14:19:12 -0700 Subject: [PATCH] Display libpng version in setup Signed-off-by: Emmanuel Ferdman --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 0d4d42edeee..5e69fa50f52 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ NVCC_FLAGS = os.getenv("NVCC_FLAGS", None) # Note: the GPU video decoding stuff used to be called "video codec", which # isn't an accurate or descriptive name considering there are at least 2 other -# video deocding backends in torchvision. I'm renaming this to "gpu video +# video decoding backends in torchvision. I'm renaming this to "gpu video # decoder" where possible, keeping user facing names (like the env var below) to # the old scheme for BC. USE_GPU_VIDEO_DECODER = os.getenv("TORCHVISION_USE_VIDEO_CODEC", "1") == "1" @@ -211,7 +211,7 @@ def find_libpng(): subprocess.run([libpng_config, "--version"], stdout=subprocess.PIPE).stdout.strip().decode("utf-8") ) if png_version < min_version: - warnings.warn("libpng version {png_version} is less than minimum required version {min_version}") + warnings.warn(f"libpng version {png_version} is less than minimum required version {min_version}") return False, None, None, None include_dir = ( @@ -448,7 +448,7 @@ def find_ffmpeg_libraries(): extensions.append( CppExtension( - # This is an aweful name. It should be "cpu_video_decoder". Keeping for BC. + # This is an awful name. It should be "cpu_video_decoder". Keeping for BC. "torchvision.video_reader", combined_src, include_dirs=[