Skip to content

Commit

Permalink
Fix install script for Python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Oct 27, 2020
1 parent fb9af15 commit 66b7dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2020 Stanford University
#
Expand All @@ -24,7 +24,7 @@ def download(dest_path, url, sha1):
subprocess.check_call(['wget', '-O', dest_path, url])
shasum = subprocess.Popen(
['shasum', '--check'], stdin=subprocess.PIPE, cwd=dest_dir)
shasum.communicate('%s %s' % (sha1, dest_file))
shasum.communicate(('%s %s' % (sha1, dest_file)).encode())
assert shasum.wait() == 0

def driver(thread_count):
Expand Down

0 comments on commit 66b7dfe

Please sign in to comment.