Skip to content

Commit

Permalink
pkg_resources is replaces with pkgutil
Browse files Browse the repository at this point in the history
  • Loading branch information
pkorshunov committed Nov 19, 2015
1 parent e332139 commit 442c2fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 3 additions & 2 deletions bob/__init__.py
Original file line number Diff line number Diff line change
@@ -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__)
5 changes: 3 additions & 2 deletions bob/db/__init__.py
Original file line number Diff line number Diff line change
@@ -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__)
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@

install_requires = install_requires,

namespace_packages = [
'bob',
'bob.db',
],


entry_points = {
# bob database declaration
Expand Down

0 comments on commit 442c2fc

Please sign in to comment.