Skip to content

Commit

Permalink
support Python3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuminjie committed Dec 17, 2021
1 parent f9bdf9b commit 0a81621
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openseespy-pip/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
f'openseespylinux>={version}; platform_system=="Linux"',
f'openseespymac>={version}; platform_system=="Darwin"',
],
python_requires='=3.9',
python_requires='==3.9',
zip_safe=False)
4 changes: 2 additions & 2 deletions openseespywin-pip/openseespywin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# platform dependent
if sys.platform.startswith('win'):

if sys.version_info[0] == 3 and sys.version_info[1] == 8:
if sys.version_info[0] == 3 and sys.version_info[1] == 9:
dll_path = ''
for path in sys.path:
if 'DLLs' in path:
Expand All @@ -23,7 +23,7 @@
raise RuntimeError('Failed to import openseespy on Windows.')
else:
raise RuntimeError(
'Python version 3.8 is needed for Windows')
'Python version 3.9 is needed for Windows')

else:

Expand Down
2 changes: 1 addition & 1 deletion openseespywin-pip/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"Programming Language :: Python :: 3.9",
'Operating System :: Microsoft :: Windows'],
platforms=["Windows"],
python_requires='=3.9',
python_requires='==3.9',
zip_safe=False)

0 comments on commit 0a81621

Please sign in to comment.