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 9ecf56a commit 5a13f4b
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 5a13f4b

Please sign in to comment.