Platform-Specific Dependencies in requirements.in Not Working as Expected with --universal
#8915
Labels
bug
Something isn't working
--universal
#8915
Description:
When specifying platform-specific dependencies in
requirements.in
foroptimum[onnxruntime]
andoptimum[onnxruntime-gpu]
, the generatedrequirements.txt
file consolidates dependencies inappropriately. Specifically,optimum[onnxruntime-gpu]; sys_platform == 'linux'
andoptimum[onnxruntime]; sys_platform == 'darwin'
results inoptimum[onnxruntime,onnxruntime]==1.18; sys_platform == 'linux'
in the outputrequirements.txt
, which causes the Darwin platform dependency to be ignored.Steps to Reproduce:
requirements.in
file with the following lines:uv pip compile --universal requirements.in
to generaterequirements.txt
.requirements.txt
.Expected Behavior:
requirements.txt
should list both platform-specific dependencies separately, like:Actual Behavior:
The generated
requirements.txt
incorrectly merges dependencies, resulting in:This line omits the macOS (Darwin) dependency entirely.
Environment:
uv
version: 0.4.30Operating System: Linux
The text was updated successfully, but these errors were encountered: