- Fix sprockets namespace packaging.

This commit is contained in:
Dave Shawley 2016-07-31 21:15:28 -04:00
parent 160a3c70dd
commit 140da0e79e
2 changed files with 2 additions and 7 deletions

View file

@ -5,6 +5,7 @@ Release History
`Next Release`_
---------------
- Add ``httprun`` setup.py command.
- Use ``declare_namespace`` to declare the sprockets namespace package.
`1.2.0`_ (11 Mar 2016)
----------------------

View file

@ -1,7 +1 @@
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
__import__('pkg_resources').declare_namespace(__name__)