Skip to content

Commit

Permalink
Use py2-compatible major version check
Browse files Browse the repository at this point in the history
  • Loading branch information
rtburns-jpl committed Sep 14, 2020
1 parent b23e8f5 commit 379e913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if confinst.CheckCHeader("numpy/arrayobject.h"):
else:
print("Numpy not found.")

if sys.version_info.major == 2:
if sys.version_info[0] == 2:
raise RuntimeError("Cannot autodetect numpy from python2")

print("Attempting to autodetect...")
Expand Down

0 comments on commit 379e913

Please sign in to comment.