Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.activation
Commits
4e6c4d54
Commit
4e6c4d54
authored
Nov 19, 2015
by
Pavel KORSHUNOV
Browse files
pkg_resources is replaces with pkgutil
parent
4ce16be9
Changes
3
Hide whitespace changes
Inline
Side-by-side
bob/__init__.py
View file @
4e6c4d54
#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/learn/__init__.py
View file @
4e6c4d54
#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 @
4e6c4d54
...
...
@@ -37,10 +37,7 @@ setup(
setup_requires
=
build_requires
,
install_requires
=
build_requires
,
namespace_packages
=
[
"bob"
,
"bob.learn"
,
],
ext_modules
=
[
Extension
(
"bob.learn.activation.version"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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