diff --git a/binaries/setup.py b/binaries/setup.py index 20643e2..91e97aa 100644 --- a/binaries/setup.py +++ b/binaries/setup.py @@ -43,8 +43,7 @@ streamer_binaries.__name__: platform_binaries, }, install_requires=[ - # This is only used for Linux, and only supports Linux, but can be - # installed on all platforms and won't crash if imported or run. - 'distro', + # This is only used for Linux, and only supports Linux. + 'distro;platform_system=="Linux"', ], ) diff --git a/binaries/streamer_binaries/__init__.py b/binaries/streamer_binaries/__init__.py index ae92dcd..27df4e1 100644 --- a/binaries/streamer_binaries/__init__.py +++ b/binaries/streamer_binaries/__init__.py @@ -43,6 +43,6 @@ if _os == 'linux': if distro.id() == 'ubuntu': if distro.version() in _ubuntu_versions_with_hw_encoders: - suffix = '-ubuntu-{}'.format(distro.version()) + suffix = '-ubuntu-' + distro.version() ffmpeg += suffix ffprobe += suffix