Skip to content

Commit

Permalink
fix setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
taishi-i committed Jan 27, 2024
1 parent 3c2764b commit b8049fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ def switch_install_requires():
_dynet_libs = ['six', 'numpy', 'DyNet']
_dynet38_libs = ['six', 'numpy', 'DyNet38']

if os.name == 'posix' and major == 3 and minor > 5:
if os.name == 'posix' and major == 3 and minor > 6:
return _dynet38_libs
elif os.name == "nt":
return _dynet_libs
elif major == 3 and minor < 6:
elif major == 3 and minor < 7:
return _dynet_libs
elif major == 2:
return _dynet_libs
else:
return _dynet38_libs

Expand Down

0 comments on commit b8049fd

Please sign in to comment.