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