Skip to content

Commit

Permalink
Skip PIP3 upgrade on SYSTEM
Browse files Browse the repository at this point in the history
  • Loading branch information
logandhillon committed Jul 25, 2024
1 parent 37a2fb6 commit c75c32a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ def print_task(task: str):

print_header("SETUP ENV")

print_task("Upgrading environment package installer")
try:
subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", "pip"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
print("OK")
except subprocess.CalledProcessError:
print("FAILED")
if install_type is not InstallType.SYSTEM:
print_task("Upgrading environment package installer")
try:
subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", "pip"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
print("OK")
except subprocess.CalledProcessError:
print("FAILED")

print_task("Installing system HTTP client")
install_package("requests")
Expand Down

0 comments on commit c75c32a

Please sign in to comment.