title: Automatically import modules from a namespace package
body: <p>Is there a way to automatically import modules from an implicit namespace package (<a href="https://www.python.org/dev/peps/pep-0420/" rel="nofollow">PEP420</a>), if we are not allowed to have <em>__init__.py</em> files?</p>
  
  <p>I decided to split my package <code>mylib</code> into two namespace packages: <code>mylib-core</code> and <code>mylib-extra</code>. </p>
  
  <p>Before, when I would run <code>import mylib</code>, I would automatically import <code>mylib.module</code>, <code>mylib.module2</code>, etc., using code in my <em>__init__.py</em> file:</p>
  
  <pre><code># __init__.py
  
  __all__ = [
      'module1',
      'module2',
  ]
  
  from . import *
  </code></pre>
  
  <p>Is there a way to accomplish the same behaviour in a namespace package? I have a lot of existing code that expects this behaviour.</p>