Skip to content

Commit

Permalink
Python 3.5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jun 1, 2018
1 parent aec1496 commit 2ef1272
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def build_extension(self, ext):

# Find where to put the temporary build files created by `cargo`
metadata_command = ["cargo", "metadata", "--manifest-path", ext.path, "--format-version", "1"]
metadata = json.loads(check_output(metadata_command))
# The decoding is needed for python 3.5 compatibility
metadata = json.loads(check_output(metadata_command).decode())
target_dir = metadata["target_directory"]

if not os.path.exists(ext.path):
Expand Down

0 comments on commit 2ef1272

Please sign in to comment.