Skip to content

Enhance provisioning scripts to include Pixi installation - #6

Merged
volpatto merged 1 commit into
mainfrom
fix-nvidia-and-pixi
Aug 18, 2026
Merged

Enhance provisioning scripts to include Pixi installation#6
volpatto merged 1 commit into
mainfrom
fix-nvidia-and-pixi

Conversation

@volpatto

Copy link
Copy Markdown
Member
  • Updated README.md to reflect the addition of Pixi installation across Ubuntu, macOS, and Windows provisioning scripts.
  • Modified Ubuntu provisioning script to install Pixi for the invoking user, with CLI flags to control installation.
  • Enhanced macOS provisioning script to include Pixi installation via Homebrew, with appropriate flags.
  • Updated Windows PowerShell script to install Pixi for the current user, with verification of installation.
  • Adjusted CUDA and NVIDIA driver installation logic to clarify independence and requirements.

- Updated README.md to reflect the addition of Pixi installation across Ubuntu, macOS, and Windows provisioning scripts.
- Modified Ubuntu provisioning script to install Pixi for the invoking user, with CLI flags to control installation.
- Enhanced macOS provisioning script to include Pixi installation via Homebrew, with appropriate flags.
- Updated Windows PowerShell script to install Pixi for the current user, with verification of installation.
- Adjusted CUDA and NVIDIA driver installation logic to clarify independence and requirements.
Copilot AI lite review requested due to automatic review settings August 18, 2026 02:08
@volpatto
volpatto merged commit 924401d into main Aug 18, 2026
2 checks passed
@volpatto
volpatto deleted the fix-nvidia-and-pixi branch August 18, 2026 02:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Pixi installation support to the existing cross-platform provisioning scripts (Ubuntu/macOS/Windows), while also clarifying and decoupling NVIDIA driver vs CUDA Toolkit setup to better match typical PyTorch workstation needs.

Changes:

  • Added Pixi installation (with toggle flags) to Ubuntu, macOS (Homebrew), and Windows (PowerShell) provisioning scripts.
  • Refactored Ubuntu/macOS CLI flag handling so explicit flags override profile defaults deterministically.
  • Updated CUDA/NVIDIA driver logic and user-facing documentation to emphasize driver/toolkit independence.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
scripts/provision-win.ps1 Adds optional Pixi install and improves Miniconda installer error handling; adjusts CUDA/driver logic.
scripts/provision-ubuntu.sh Adds user-scoped Pixi install, introduces NVIDIA repo/driver logic, and refines profile/flag precedence.
scripts/provision-macos.sh Adds Pixi via Homebrew, refines profile/flag precedence, and blocks sudo/root execution.
README.md Documents Pixi installation and the updated NVIDIA/CUDA guidance and flags across platforms.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/provision-win.ps1
Comment on lines +261 to +264
$installer = Join-Path $env:TEMP 'install-pixi.ps1'
Write-Host "Downloading the official Pixi installer..."
Invoke-WebRequest -Uri 'https://pixi.sh/install.ps1' -OutFile $installer -UseBasicParsing
& powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File $installer
Comment thread scripts/provision-win.ps1
Comment on lines +262 to +267
Write-Host "Downloading the official Pixi installer..."
Invoke-WebRequest -Uri 'https://pixi.sh/install.ps1' -OutFile $installer -UseBasicParsing
& powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File $installer
$pixiExitCode = $LASTEXITCODE
Remove-Item $installer -Force -ErrorAction SilentlyContinue
if ($pixiExitCode -ne 0) { throw "Pixi installer failed with exit code $pixiExitCode." }
Comment on lines +237 to 241
if [ "$INSTALL_VSCODE" = "true" ]; then
setup_code_repo
fi
log "Updating apt and installing base packages..."
apt-get update
Comment on lines +285 to +294
if [ "$INSTALL_DRIVER" = "true" ]; then
if $IS_WSL; then
warn "Skipping Linux NVIDIA driver in WSL2; install/update the NVIDIA driver on Windows."
else
log "Installing NVIDIA driver package: $NVIDIA_DRIVER_PKG"
DEBIAN_FRONTEND=noninteractive apt-get install -y \
"linux-headers-$(uname -r)" "$NVIDIA_DRIVER_PKG"
REBOOT_REQUIRED=true
fi
fi
Comment on lines +354 to +358
installer="$(mktemp /tmp/pixi-install.XXXXXX.sh)"
curl -fsSL https://pixi.sh/install.sh -o "$installer"
group="$(id -gn "$u")"
chown "$u":"$group" "$installer"
sudo -H -u "$u" env HOME="$h" bash "$installer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants