Skip to content

Commit 2d59e56

Browse files
committed
Fixed unbound method type error #4
1 parent 324fda8 commit 2d59e56

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGES
22
=======
33

4+
0.5.1 (2017-04-xx)
5+
------------------
6+
7+
- Fixed unbound method type error #4
8+
9+
410
0.5.0 (2017-03-26)
511
------------------
612

setuptools_rust/build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def has_rust_extensions(self):
1313

1414
def check_extensions_list(self, extensions):
1515
if extensions:
16-
_build_ext.check_extensions_list(extensions)
16+
_build_ext.check_extensions_list(self, extensions)
1717

1818
def run(self):
1919
"""Run build_rust sub command """

setuptools_rust/check.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import sys
44
import subprocess
55
from distutils.cmd import Command
6-
from distutils.errors import CompileError, DistutilsExecError
6+
from distutils.errors import (
7+
CompileError, DistutilsFileError, DistutilsExecError)
78

89
import semantic_version
910

@@ -61,10 +62,11 @@ def run(self):
6162

6263
# Execute cargo command
6364
try:
64-
output = subprocess.check_output(args)
65+
subprocess.check_output(args)
6566
except subprocess.CalledProcessError as e:
6667
raise CompileError(
67-
"cargo failed with code: %d\n%s" % (e.returncode, e.output))
68+
"cargo failed with code: %d\n%s" % (
69+
e.returncode, e.output.decode("utf-8")))
6870
except OSError:
6971
raise DistutilsExecError(
7072
"Unable to execute 'cargo' - this package "

0 commit comments

Comments
 (0)