Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use more universal windows install instructions #1811

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Feb 21, 2024

Recommend installing uv on windows with

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

instead of

irm https://astral.sh/uv/install.ps1 | iex

to support installing on cmd.exe, the classic non-powershell windows command prompt.

See axodotdev/cargo-dist#458 for background. This will also be included in the next cargo-dist release.

I have confirmed this passes on

  • Command Prompt
  • Windows PowerShell
  • PowerShell
  • git bash

Closes #1750

CC @12932 this fixes the uv command prompt installation.

Recommend installing puffin with

```
powershell -c "irm https://github.com/axodotdev/cargo-dist/releases/latest/download/cargo-dist-installer.ps1 | iex"
```

instead of

```
irm https://github.com/axodotdev/cargo-dist/releases/latest/download/cargo-dist-installer.ps1 | iex
```

to support installing on cmd.exe, the classic non-powershell windows terminal.

See axodotdev/cargo-dist#458 for background. This will also be included in the next cargo-dist release.
@konstin konstin added the enhancement New feature or request label Feb 21, 2024
@MichaReiser
Copy link
Member

MichaReiser commented Feb 21, 2024

Seems reasonable to me. Running it locally made me aware that this calls the Windows Powershell installation (I have profile customizations that aren't compatible with the windows power shell and they fail). Do we know if this works on systems that only have powershell installed but not the system powershell? I believe GitHub Windows uses pws7.exe. Can we try if the command works inside of a runner (sorry, I know it's pain to try these things out)

@zanieb zanieb added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Feb 21, 2024
AlexWaygood pushed a commit that referenced this pull request Feb 21, 2024
## Summary

Follow on to PR #1811 as part of
issue #1750. This change updates
the windows venv activation to work for both Powershell and Command
Prompt instead of just Powershell. This also aligns with what `uv venv`
displays.
@konstin
Copy link
Member Author

konstin commented Feb 22, 2024

@konstin konstin enabled auto-merge (squash) February 22, 2024 09:17
@konstin konstin merged commit af06a6f into main Feb 22, 2024
7 checks passed
@konstin konstin deleted the konsti/update-powershell-instructions branch February 22, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install instructions for Windows command prompt
4 participants