From 7d62bc9a028fc88301e2df279c59c80d02697d7b Mon Sep 17 00:00:00 2001 From: konstin Date: Fri, 1 Jun 2018 15:04:14 +0200 Subject: [PATCH] Python 2 compatibility --- setuptools_rust/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools_rust/build.py b/setuptools_rust/build.py index 3b155b97..779b3c4f 100644 --- a/setuptools_rust/build.py +++ b/setuptools_rust/build.py @@ -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):