From 0f16017804ee3f496f2650add38d2c50548d955d Mon Sep 17 00:00:00 2001
From: Yifan Zhao <yifanz16@illinois.edu>
Date: Thu, 8 Apr 2021 14:41:56 -0500
Subject: [PATCH] Don't check python version if not installing python packages

---
 hpvm/scripts/hpvm_installer.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hpvm/scripts/hpvm_installer.py b/hpvm/scripts/hpvm_installer.py
index 142b27c656..ae06ca12f6 100755
--- a/hpvm/scripts/hpvm_installer.py
+++ b/hpvm/scripts/hpvm_installer.py
@@ -356,8 +356,9 @@ def main():
 
     # Don't parse args if no args given -- use prompt mode
     args = prompt_args() if len(argv) == 1 else parse_args()
+    if not args.no_pypkg:
+        check_python_version()
     print_args(args)
-    check_python_version()
     check_download_llvm_clang()
     link_and_patch()
     if not args.no_params:
-- 
GitLab