1
0
Fork 0
mirror of https://github.com/python-poetry/install.python-poetry.org.git synced 2024-11-23 06:20:57 -05:00

Compare commits

...

3 commits

Author SHA1 Message Date
Tatsunori Uchino
559cb11ff7
Merge 2b71f2bd03 into 290e92f756 2024-11-20 15:00:12 +00:00
Tatsunori Uchino
2b71f2bd03
Correcting verbs to the present tense
Co-authored-by: Arun Babu Neelicattu <arun.neelicattu@gmail.com>
2024-11-21 00:00:09 +09:00
Tatsunori Uchino
29ac4557b7 Add PowerShell snippets for postinstall 2024-11-20 15:40:39 +01:00

View file

@ -269,7 +269,21 @@ POST_MESSAGE_CONFIGURE_FISH = """
You can execute `set -U fish_user_paths {poetry_home_bin} $fish_user_paths` You can execute `set -U fish_user_paths {poetry_home_bin} $fish_user_paths`
""" """
POST_MESSAGE_CONFIGURE_WINDOWS = """""" POST_MESSAGE_CONFIGURE_WINDOWS = """
You can choose and execute one of the following commands in PowerShell:
A. Append the bin directory to your user environment variable `PATH`:
```
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";{poetry_home_bin}", "User")
```
B. Tries to appends the bin directory to PATH every when you run PowerShell (>=6 recommended):
```
echo 'if (-not (Get-Command poetry -ErrorAction Ignore)) {{ $env:Path += ";{poetry_home_bin}" }}' | Out-File -Append $PROFILE
```
"""
class PoetryInstallationError(RuntimeError): class PoetryInstallationError(RuntimeError):