[dependency] Add conditional dependency for gpt-oss to maintain Python 3.10 minimum version requirement. #26444
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add conditional dependency for gpt-oss to maintain Python 3.10 minimum version requirement.
Issue is introduced by #24315
Problem
The gpt-oss package requires Python >= 3.12, but vLLM currently supports Python >= 3.10. Adding gpt-oss as an unconditional dependency would break compatibility for Python 3.10 and 3.11 users.
Solution
Make the gpt-oss dependency conditional on Python version >= 3.12:
Impact
Python 3.10-3.11 users: Can install and use vLLM with core functionality. gpt-oss features are gracefully disabled with warning logs, as handled by existing
validate_gpt_oss_install()logic.Python 3.12+ users: Get full gpt-oss functionality including browser and code interpreter tools.
Minimum Python version: Remains unchanged at 3.10.