Skip to content

Commit cf84db3

Browse files
authored
fix(voxcpm): Force using a recent voxcpm version to kick the dependency solver (#9150)
fix(voxcpm): Allow packages to be fetched from all indexes Signed-off-by: Richard Palethorpe <io@richiejp.com>
1 parent d3f629f commit cf84db3

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

backend/python/voxcpm/install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ else
88
source $backend_dir/../common/libbackend.sh
99
fi
1010

11+
# The PyTorch CPU/CUDA indexes mirror common packages (e.g. requests) with
12+
# limited, often outdated version sets. uv's default "first-index" strategy
13+
# locks to the first index that carries a package, so it can pick e.g.
14+
# requests==2.28.1 from the PyTorch index instead of a newer version from
15+
# PyPI. voxcpm's transitive deps (datasets>=3 → requests>=2.32.2) need the
16+
# PyPI versions. "unsafe-best-match" is safe here because we control both
17+
# indexes and there is no dependency confusion risk.
18+
export UV_INDEX_STRATEGY=unsafe-best-match
19+
1120
installRequirements
1221

1322
if [ "x${USE_PIP}" == "xtrue" ]; then

backend/python/voxcpm/requirements-cpu.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ torch
33
torchaudio
44
soundfile
55
numpy
6-
voxcpm
6+
voxcpm>=1.5.0
77
torchcodec

0 commit comments

Comments
 (0)