Make 'powerline' a namespace package

This will allow third-party plugins to use the 'powerline' namespace for
contributed segments.

Refs #3.
This commit is contained in:
Kim Silkebækken 2013-02-03 16:27:30 +01:00
parent 7e14a84cc9
commit 57bd0af272
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)

View File

@ -33,4 +33,5 @@ setup(name='Powerline',
'Sphinx',
],
},
namespace_packages=['powerline'],
)