Skip to content

Commit 2ef1272

Browse files
committed
Python 3.5 compatibility
1 parent aec1496 commit 2ef1272

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools_rust/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def build_extension(self, ext):
7171

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

7778
if not os.path.exists(ext.path):

0 commit comments

Comments
 (0)