Skip to content

Commit 90f32c8

Browse files
committed
Fix lockfile generation to match runtime configuration
Signed-off-by: Pablo Garay <pagaray@nvidia.com>
1 parent 6c08f5e commit 90f32c8

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/generate-lockfile.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,17 @@ jobs:
6464
curl -LsSf https://astral.sh/uv/0.8.22/install.sh | sh
6565
export PATH="$HOME/.local/bin:$PATH"
6666
67-
# Create venv with system packages
67+
# Create venv with system packages (this makes container torch available)
6868
uv venv /opt/venv --system-site-packages
6969
export UV_PROJECT_ENVIRONMENT=/opt/venv
7070
71-
# Install minimal build deps
72-
uv pip install --system setuptools wheel packaging ninja pybind11 Cython "numpy<2.0.0"
71+
# Install build deps first (matches Dockerfile two-step approach)
72+
uv sync --only-group build
7373
74-
# Backup and modify pyproject.toml
75-
cp pyproject.toml pyproject.toml.backup
76-
sed -i "/^override-dependencies = \[/,/^\]/s/^/# /" pyproject.toml
77-
78-
# Generate lockfile
74+
# Generate lockfile with the EXACT configuration from pyproject.toml
75+
# No modifications! This ensures lockfile matches what Dockerfile will use
7976
uv lock --no-build-isolation
8077
81-
# Restore original
82-
mv pyproject.toml.backup pyproject.toml
83-
8478
# Show disk usage
8579
df -h
8680
'

0 commit comments

Comments
 (0)