Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.face
Commits
9a6c0e1a
Commit
9a6c0e1a
authored
Nov 19, 2015
by
Pavel KORSHUNOV
Browse files
pkg_resources is replaces with pkgutil
parent
3ef783a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
bob/__init__.py
View file @
9a6c0e1a
#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__
)
bob/bio/__init__.py
View file @
9a6c0e1a
#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__
)
setup.py
View file @
9a6c0e1a
...
...
@@ -80,10 +80,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.bio'
,
],
# 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment