Skip to content

Commit

Permalink
Update haspywin
Browse files Browse the repository at this point in the history
Inform user Spack is installing pyWin32 module behind the scenes.
This is neccesary for Windows support.
  • Loading branch information
johnwparent authored and scheibelp committed Jan 9, 2023
1 parent 9f0bb43 commit c0eb2cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/haspywin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down

0 comments on commit c0eb2cf

Please sign in to comment.