Skip to content

Commit 3a679cb

Browse files
committed
update install script
1 parent 8cb71cc commit 3a679cb

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ override-dependencies = [
139139
"quack-kernels==0.2.5",
140140
]
141141
exclude-dependencies = ["pynvml", "emerging-optimizers"]
142-
no-build-isolation-package = ["transformer-engine", "transformer-engine-cu12", "transformer-engine-torch", "megatron-core", "megatron-bridge", "nv-grouped-gemm", "mamba-ssm", "causal-conv1d"]
142+
no-build-isolation-package = ["apex", "transformer-engine", "transformer-engine-cu12", "transformer-engine-torch", "megatron-core", "megatron-bridge", "nv-grouped-gemm", "mamba-ssm", "causal-conv1d"]
143143

144144
[tool.uv.extra-build-dependencies]
145145
apex = ["torch>=2.8.0"]

scripts/setup.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,14 @@ else
5353
echo "Skipping git reset/clean (GIT_RESET_CLEAN is not true). Preserving synced working tree."
5454
fi
5555

56-
# Install astral-uv
57-
if ! command -v uv >/dev/null 2>&1; then
58-
if ! curl -LsSf https://astral.sh/uv/install.sh | sh; then
59-
echo "Failed to install uv." >&2
60-
exit 1
61-
fi
62-
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
56+
# Install astral-uv (standalone version)
57+
# Always prepend standalone install path so it takes precedence over system/conda uv
58+
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
59+
if ! curl -LsSf https://astral.sh/uv/install.sh | sh; then
60+
echo "Failed to install uv." >&2
61+
exit 1
6362
fi
6463

65-
# Update uv
66-
uv self update
67-
6864
# Sync the dependencies
6965
if [ "${INSTALL_EXTRAS:-false}" = "true" ]; then
7066
uv sync --all-extras

0 commit comments

Comments
 (0)