try:
    __import__('pkg_resources').declare_namespace(__name__)
except ImportError:
    pass # must not have setuptools


syntax highlighted by Code2HTML, v. 0.9.1