Skip to content

Commit

Permalink
Use proper namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
James Mills committed Oct 8, 2013
1 parent fcacc97 commit c6b73da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion circuits/__init__.py
Expand Up @@ -23,6 +23,11 @@
from circuits.core import Debugger, Bridge, Loader, Manager, Timer
from circuits.core import handler, reprhandler, BaseComponent, Component

__import__("pkg_resources").declare_namespace(__name__)
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)

# flake8: noqa
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -94,6 +94,7 @@ def find_packages(where=".", exclude=()):
[console_scripts]
circuits.web = circuits.web.main:main
""",
namespace_packages=["circuits"],
zip_safe=False,
test_suite="tests.main.main"
)

0 comments on commit c6b73da

Please sign in to comment.