diff -u distribute-0.6.16/pkg_resources.py distribute-0.6.16/pkg_resources.py --- distribute-0.6.16/pkg_resources.py +++ distribute-0.6.16/pkg_resources.py @@ -1775,10 +1775,10 @@ declare_namespace(parent) if parent not in _namespace_packages: __import__(parent) - try: - path = sys.modules[parent].__path__ - except AttributeError: - raise TypeError("Not a package:", parent) + try: + path = sys.modules[parent].__path__ + except AttributeError: + raise TypeError("Not a package:", parent) # Track what packages are namespaces, so when new path items are added, # they can be updated diff -u distribute-0.6.16/debian/changelog distribute-0.6.16/debian/changelog --- distribute-0.6.16/debian/changelog +++ distribute-0.6.16/debian/changelog @@ -1,3 +1,10 @@ +distribute (0.6.16-1ubuntu0.2) oneiric; urgency=low + + * pkg_resources.py: + - add declare_namespace fix from 0.6.18 + + -- Bobby R. Ward Sun, 26 Feb 2012 16:34:13 -0600 + distribute (0.6.16-1ubuntu0.1) oneiric-proposed; urgency=low * setuptools/package_index.py: