Skip to content

Commit

Permalink
Merge pull request PyO3#39 from macisamuele/maci-make-setuptools-verbose
Browse files Browse the repository at this point in the history
Make sure that cargo uses --verbose option if pip install defines it
  • Loading branch information
konstin authored Aug 9, 2018
2 parents f15e8fb + 79394fd commit 435579e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def build_extension(self, ext):
args.append("--release")
if quiet:
args.append("-q")
elif self.verbose:
args.append("--verbose")

else:
args = (
["cargo", "rustc", "--lib", "--manifest-path", ext.path]
Expand All @@ -133,6 +136,8 @@ def build_extension(self, ext):
args.append("--release")
if quiet:
args.append("-q")
elif self.verbose:
args.append("--verbose")

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

0 comments on commit 435579e

Please sign in to comment.