Update haspywin

Inform user Spack is installing pyWin32 module behind the scenes.
This is neccesary for Windows support.
This commit is contained in:
John Parent 2023-01-06 13:26:01 -05:00 committed by Peter Scheibel
parent 9f0bb4301f
commit c0eb2cf9e6

View file

@ -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"])