Skip to content

Commit

Permalink
chore: update install-pdm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Dec 14, 2023
1 parent df41cf7 commit 15baeb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions install-pdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from tempfile import TemporaryDirectory
from typing import Sequence

if sys.version_info < (3, 7):
sys.exit("Python 3.7 or above is required to install PDM.")
if sys.version_info < (3, 8):
sys.exit("Python 3.8 or above is required to install PDM.")

_plat = platform.system()
MACOS = _plat == "Darwin"
Expand Down Expand Up @@ -137,8 +137,9 @@ def _add_to_path(target: Path) -> None:
winreg.SetValueEx(env_key, "PATH", 0, type_, new_value)

_echo(
"Post-install: {} is added to PATH env, please restart your terminal "
"to take effect".format(colored("green", value))
"Post-install: {} is added to PATH env, please restart your terminal to take effect".format(
colored("green", value)
)
)
else:
paths = [os.path.normcase(p) for p in os.getenv("PATH", "").split(os.pathsep)]
Expand Down
2 changes: 1 addition & 1 deletion install-pdm.py.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
965900c551b4d1ba5127ecf95c127c99b5a1cccef4c183a5ecf447e876fa3160 install-pdm.py
8ca00927e37520b86ff6332070189c0f1ca2732111eeb9eb5b5b5b7fb40ea388 install-pdm.py

0 comments on commit 15baeb3

Please sign in to comment.