mirror of
https://github.com/sprockets/sprockets.http.git
synced 2024-11-14 11:19:26 +00:00
- Fix sprockets namespace packaging.
This commit is contained in:
parent
160a3c70dd
commit
140da0e79e
2 changed files with 2 additions and 7 deletions
|
@ -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)
|
||||
----------------------
|
||||
|
|
|
@ -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__)
|
||||
|
|
Loading…
Reference in a new issue