Skip to content

Commit

Permalink
Install pywin32 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Mar 31, 2023
1 parent 8268d70 commit d191094
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion energyplus_regressions/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def configure() -> int:
path_link = desktop / link_name
from win32com.client import Dispatch
shell = Dispatch('WScript.Shell')
with shell.CreateShortCut(path_link) as s:
with shell.CreateShortCut(str(path_link)) as s:
s.Targetpath = str(target_exe)
s.WorkingDirectory = str(scripts_dir)
s.IconLocation = str(icon_file)
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import codecs
import os
from platform import system
from setuptools import setup, find_packages

from energyplus_regressions import NAME, VERSION
Expand All @@ -8,6 +9,10 @@
with codecs.open(os.path.join(this_dir, 'README.md'), encoding='utf-8') as i_file:
long_description = i_file.read()

install_requires = ['PyPubSub', 'beautifulsoup4']
if system() == 'Windows':
install_requires.append('pywin32')

setup(
name=NAME,
version=VERSION,
Expand All @@ -23,7 +28,7 @@
tests_require=['nose'],
keywords='energyplus',
include_package_data=True,
install_requires=['PyPubSub', 'beautifulsoup4'],
install_requires=install_requires,
entry_points={
'console_scripts': [
'energyplus_regression_runner=energyplus_regressions.runner:main_gui',
Expand Down

0 comments on commit d191094

Please sign in to comment.