-
-
Notifications
You must be signed in to change notification settings - Fork 17.3k
[Misc] Move pyav and soundfile to common requirements
#39997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,9 @@ pyzmq >= 25.0.0 | |
| msgspec | ||
| gguf >= 0.17.0 | ||
| mistral_common[image] >= 1.11.0 | ||
| av # required for audio in video IO | ||
| opencv-python-headless >= 4.13.0 # required for video IO | ||
| soundfile # required for audio IO | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moving |
||
| pyyaml | ||
| six>=1.16.0; python_version > '3.11' # transitive dependency of pandas that needs to be the latest version for python 3.12 | ||
| setuptools>=77.0.3,<81.0.0; python_version > '3.11' # Setuptools is used by triton, we need to ensure a modern version is installed for 3.12+ so that it does not try to import distutils, which was removed in 3.12 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving
av(PyAV) to common requirements introduces a mandatory dependency on FFmpeg, which is a heavy system-level requirement and is typically LGPL/GPL licensed. This significantly increases the installation footprint and the potential for installation failures in minimal environments (e.g., base Docker images) for users who only require text-based inference. Furthermore, this change contradicts the PR's stated goal of isolating LGPL dependencies, as it moves an LGPL-linked library from an optional extra into the core requirements. This should remain in an optional extra like[video]or[audio]. Additionally, the requirement is unversioned here, which can lead to non-deterministic builds.