On 03/16/2016 03:34 PM, Hong wrote:
> Can you send a pull request?
>
> Hong
>
> On Mon, Mar 7, 2016 at 3:03 PM, Tres Seaver <
tres....@gmail.com
> <mailto:
tres....@gmail.com>> wrote:
>
> Otherwise, installing alongside another package using the google namespace
> can break (right now, protobuf). The boilerplate can be just a one-liner:
>
> __import__('pkg_resources').declare_namespace(__name__)
>
> If you are trying to support a non-setuptools installation (Why?), then you
> need a bulkier version:
>
> try: import pkg_resources pkg_resources.declare_namespace(__name__) except
> ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__)