From c0eb2cf9e6708eecfc74189f97a9790515f64999 Mon Sep 17 00:00:00 2001 From: John Parent Date: Fri, 6 Jan 2023 13:26:01 -0500 Subject: [PATCH] Update haspywin Inform user Spack is installing pyWin32 module behind the scenes. This is neccesary for Windows support. --- bin/haspywin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/haspywin.py b/bin/haspywin.py index e19d902e28..c40eefdd32 100644 --- a/bin/haspywin.py +++ b/bin/haspywin.py @@ -10,6 +10,7 @@ def getpywin(): try: import win32con # noqa: F401 except ImportError: + print("pyWin32 not installed but is required...\nInstalling via pip:") subprocess.check_call([sys.executable, "-m", "pip", "-q", "install", "--upgrade", "pip"]) subprocess.check_call([sys.executable, "-m", "pip", "-q", "install", "pywin32"])