Skip to content

Commit

Permalink
Python 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jun 1, 2018
1 parent 2ef1272 commit 7d62bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ 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"]
# The decoding is needed for python 3.5 compatibility
metadata = json.loads(check_output(metadata_command).decode())
metadata = json.loads(check_output(metadata_command).decode("utf-8"))
target_dir = metadata["target_directory"]

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

0 comments on commit 7d62bc9

Please sign in to comment.