Skip to content

Commit 435579e

Browse files
authored
Merge pull request #39 from macisamuele/maci-make-setuptools-verbose
Make sure that cargo uses --verbose option if pip install defines it
2 parents f15e8fb + 79394fd commit 435579e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setuptools_rust/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def build_extension(self, ext):
123123
args.append("--release")
124124
if quiet:
125125
args.append("-q")
126+
elif self.verbose:
127+
args.append("--verbose")
128+
126129
else:
127130
args = (
128131
["cargo", "rustc", "--lib", "--manifest-path", ext.path]
@@ -133,6 +136,8 @@ def build_extension(self, ext):
133136
args.append("--release")
134137
if quiet:
135138
args.append("-q")
139+
elif self.verbose:
140+
args.append("--verbose")
136141

137142
args.extend(["--", "--crate-type", "cdylib"])
138143
args.extend(ext.rustc_flags or [])

0 commit comments

Comments
 (0)