diff --git a/bob/__init__.py b/bob/__init__.py
index 60381ea9b78a067c402bf65368cc63241b0d7456..2ab1e28b150f0549def9963e9e87de3fdd6b2579 100644
--- a/bob/__init__.py
+++ b/bob/__init__.py
@@ -1,2 +1,3 @@
-#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
-__import__('pkg_resources').declare_namespace(__name__)
+# see https://docs.python.org/3/library/pkgutil.html
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
diff --git a/examples/bob.example.extension/bob/__init__.py b/examples/bob.example.extension/bob/__init__.py
index 60381ea9b78a067c402bf65368cc63241b0d7456..2ab1e28b150f0549def9963e9e87de3fdd6b2579 100644
--- a/examples/bob.example.extension/bob/__init__.py
+++ b/examples/bob.example.extension/bob/__init__.py
@@ -1,2 +1,3 @@
-#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
-__import__('pkg_resources').declare_namespace(__name__)
+# see https://docs.python.org/3/library/pkgutil.html
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
diff --git a/examples/bob.example.extension/bob/example/__init__.py b/examples/bob.example.extension/bob/example/__init__.py
index 60381ea9b78a067c402bf65368cc63241b0d7456..2ab1e28b150f0549def9963e9e87de3fdd6b2579 100644
--- a/examples/bob.example.extension/bob/example/__init__.py
+++ b/examples/bob.example.extension/bob/example/__init__.py
@@ -1,2 +1,3 @@
-#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
-__import__('pkg_resources').declare_namespace(__name__)
+# see https://docs.python.org/3/library/pkgutil.html
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
diff --git a/examples/bob.example.extension/setup.py b/examples/bob.example.extension/setup.py
index a99aa87b65c772385d37725c4615ac52bd82bc4e..540aba4b2bc0ed6d3b9d75dbba236dfae39eb730 100644
--- a/examples/bob.example.extension/setup.py
+++ b/examples/bob.example.extension/setup.py
@@ -96,10 +96,7 @@ setup(
     # Our database packages are good examples of namespace implementations
     # using several layers. You can check them out here:
     # https://github.com/idiap/bob/wiki/Satellite-Packages
-    namespace_packages = [
-      'bob',
-      'bob.example',
-    ],
+
 
     # In fact, we are defining two extensions here. In any case, you can define
     # as many extensions as you need. Each of them will be compiled
diff --git a/examples/bob.example.library/bob/__init__.py b/examples/bob.example.library/bob/__init__.py
index 60381ea9b78a067c402bf65368cc63241b0d7456..2ab1e28b150f0549def9963e9e87de3fdd6b2579 100644
--- a/examples/bob.example.library/bob/__init__.py
+++ b/examples/bob.example.library/bob/__init__.py
@@ -1,2 +1,3 @@
-#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
-__import__('pkg_resources').declare_namespace(__name__)
+# see https://docs.python.org/3/library/pkgutil.html
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
diff --git a/examples/bob.example.library/bob/example/__init__.py b/examples/bob.example.library/bob/example/__init__.py
index 60381ea9b78a067c402bf65368cc63241b0d7456..2ab1e28b150f0549def9963e9e87de3fdd6b2579 100644
--- a/examples/bob.example.library/bob/example/__init__.py
+++ b/examples/bob.example.library/bob/example/__init__.py
@@ -1,2 +1,3 @@
-#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
-__import__('pkg_resources').declare_namespace(__name__)
+# see https://docs.python.org/3/library/pkgutil.html
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
diff --git a/examples/bob.example.library/setup.py b/examples/bob.example.library/setup.py
index 14b5f1831493d60485f01b4df474637fe65d8a4d..fd3243c929ee8eb04638f26b6a6c905fdd5dffd5 100644
--- a/examples/bob.example.library/setup.py
+++ b/examples/bob.example.library/setup.py
@@ -94,10 +94,7 @@ setup(
     # Our database packages are good examples of namespace implementations
     # using several layers. You can check them out here:
     # https://github.com/idiap/bob/wiki/Satellite-Packages
-    namespace_packages = [
-      'bob',
-      'bob.example',
-    ],
+
 
     # In fact, we are defining two extensions here. In any case, you can define
     # as many extensions as you need. Each of them will be compiled
diff --git a/examples/bob.example.project/bob/__init__.py b/examples/bob.example.project/bob/__init__.py
index 60381ea9b78a067c402bf65368cc63241b0d7456..2ab1e28b150f0549def9963e9e87de3fdd6b2579 100644
--- a/examples/bob.example.project/bob/__init__.py
+++ b/examples/bob.example.project/bob/__init__.py
@@ -1,2 +1,3 @@
-#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
-__import__('pkg_resources').declare_namespace(__name__)
+# see https://docs.python.org/3/library/pkgutil.html
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
diff --git a/examples/bob.example.project/bob/example/__init__.py b/examples/bob.example.project/bob/example/__init__.py
index 60381ea9b78a067c402bf65368cc63241b0d7456..2ab1e28b150f0549def9963e9e87de3fdd6b2579 100644
--- a/examples/bob.example.project/bob/example/__init__.py
+++ b/examples/bob.example.project/bob/example/__init__.py
@@ -1,2 +1,3 @@
-#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
-__import__('pkg_resources').declare_namespace(__name__)
+# see https://docs.python.org/3/library/pkgutil.html
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
diff --git a/examples/bob.example.project/setup.py b/examples/bob.example.project/setup.py
index b1eea4312feab6f8f99f85ce11eb3b752505de2f..41922557aa1ca2db6757e7ebf6200c19b20fba20 100644
--- a/examples/bob.example.project/setup.py
+++ b/examples/bob.example.project/setup.py
@@ -82,10 +82,7 @@ setup(
     # Our database packages are good examples of namespace implementations
     # using several layers. You can check them out here:
     # https://github.com/idiap/bob/wiki/Satellite-Packages
-    namespace_packages = [
-      'bob',
-      'bob.example',
-    ],
+
 
     # This entry defines which scripts you will have inside the 'bin' directory
     # once you install the package (or run 'bin/buildout'). The order of each
diff --git a/setup.py b/setup.py
index 5c389e3d37f5d8b88da7ca44e0fb7fd03cf786a8..75a1c729ceef9b9dcb237caf6cd191b51a2f923a 100644
--- a/setup.py
+++ b/setup.py
@@ -31,9 +31,7 @@ setup(
     include_package_data=True,
     zip_safe=False,
 
-    namespace_packages=[
-      "bob",
-    ],
+
 
     install_requires=requiries,