title: How can I suppress warnings due to external library installed by setup.py?
body: <p>I've coauthored a Python package (let's call it "M") that has a number of dependent Python packages. The dependent packages are listed using <code>install_requires</code> in M's <code>setup.py</code> file. When users run <code>python setup.py install</code> for our package M, the process of installing one of those dependencies (let's call it "L") involves the compilation of an external C++ library if the user does not already have L installed. The compilation may generate a number of gcc warnings. I know the reasons for the warnings, and the issues are benign. I would like to <strong>suppress</strong> the printing of those warnings when a user runs <code>setup.py install</code> for our package M.  At first, I thought that putting the following in <code>setup.py</code> for M would work,</p>
  
  <pre><code>setup (
    ...
    extra_compile_args = ['-Wno-enum-conversion', '-Wno-strict-prototypes'],
    ...
  )
  </code></pre>
  
  <p>but it turns out to do nothing – the warnings are still printed when the Python installation tools install the dependency L.  </p>
  
  <p>How can I suppress the warnings when users run <code>python setup.py install</code> for M?</p>