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 0026798 commit 2de0ace
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/ip/__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 @@ -37,10 +37,7 @@
setup_requires = build_requires,
install_requires = build_requires,

namespace_packages=[
"bob",
"bob.ip",
],


ext_modules = [
Extension("bob.ip.color.version",
Expand Down

0 comments on commit 2de0ace

Please sign in to comment.