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 397adb8 commit 939c989
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 @@ -46,10 +46,7 @@

install_requires = install_requires,

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


entry_points={
# declare database to bob
Expand Down

0 comments on commit 939c989

Please sign in to comment.