Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add install requires to setup.py #1

Merged
merged 4 commits into from
Jan 15, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions pyMSVC/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,10 @@

import platform

if 'Windows' in platform.platform():
windows = True
else:
windows = False
windows = 'Windows' in platform.platform()

if windows:
import vswhere
import pyMSVC.vswhere

from ctypes import HRESULT
from ctypes.wintypes import (
Expand Down Expand Up @@ -75,7 +72,7 @@
_shell32 = ctypes.windll.Shell32

try:
_vswhere = vswhere.SetupConfiguration.GetSetupConfiguration()
_vswhere = pyMSVC.vswhere.SetupConfiguration.GetSetupConfiguration()
except: # NOQA
_vswhere = None

Expand Down Expand Up @@ -873,7 +870,7 @@ def __init__(
self._devinit_path = devinit_path

@property
def cpp_installation(self) -> vswhere.ISetupInstance2:
def cpp_installation(self) -> pyMSVC.vswhere.ISetupInstance2:
return self._cpp_installation

@property
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
'Tired of having a new visual studio version break your setup program?\n'
'This library is the solution.'
),
license='MIT'
license='MIT',
install_requires=["comtypes"],
)