~roadmr/canonical-identity-provider/fix-deprecation-warnings-1

  • Committer: Daniel Manrique
  • Date: 2018-05-25 17:03:41 UTC
  • Revision ID: roadmr@ubuntu.com-20180525170341-c4rrfl2ajdtv16tu
Ignore annoying import warnings.

Some harmless but annoying import warnings are shown with -Wd, which on the
other hand is needed so Django DeprecationWarnings are shown. Since these
ImportWarnings are for external modules over which we have no control, and they
are just warnings, it should be OK to ignore/suppress them. A real problem like
an ImportError is NOT silenced by this.

Example warnings when doing e.g. make start-db:


/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/paste': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/lazr': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/backports': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/sphinxcontrib': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)

affected modules (seen here, there may be others):
paste
lazr
backports
sphinxcontrib
Filename Latest Rev Last Changed Committer Comment Size
..