Skip to content

Commit

Permalink
update openseespy pip for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuminjie committed Aug 10, 2020
1 parent 67a7284 commit eef221c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions openseespy-pip/install_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from build_pip import copy_library, build_pip, upload_pip_test, clean_pip


copy_library('../OpenSeesPy/SRC/interpreter/opensees.so',
'../OpenSeesPy/SRC/interpreter/opensees.pyd')
copy_library('../../opensees/SRC/interpreter/opensees.so',
'../../opensees/SRC/interpreter/opensees.pyd')
build_pip()
upload_pip_test()
clean_pip()
22 changes: 13 additions & 9 deletions openseespy-pip/openseespy/opensees/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,24 @@

elif sys.platform.startswith('win'):

try:
from openseespy.opensees.win.opensees import *
except:
raise RuntimeError('Failed to import openseespy.')
# python 3.7 is required
if sys.version_info[0] == 3 and sys.version_info[1] == 7:
# if sys.version_info[0] == 3 and sys.version_info[1] == 7:

try:
from openseespy.opensees.win.opensees import *
# try:
# from openseespy.opensees.win.opensees import *

except:
# except:

raise RuntimeError(
'Failed to import openseespy. Anaconda is recommended https://www.anaconda.com/distribution/')
# raise RuntimeError(
# 'Failed to import openseespy. Anaconda is recommended https://www.anaconda.com/distribution/')

else:
raise RuntimeError(
'Python version 3.7 is needed for Windows (Anaconda is recommended https://www.anaconda.com/distribution/)')
# else:
# raise RuntimeError(
# 'Python version 3.7 is needed for Windows (Anaconda is recommended https://www.anaconda.com/distribution/)')

# if sys.version_info[1] == 6:

Expand Down
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion openseespy-pip/openseespy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "3.2.1"
version = "3.2.2.3"

0 comments on commit eef221c

Please sign in to comment.