Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.io.base
Commits
5e91479d
Commit
5e91479d
authored
Apr 30, 2015
by
Manuel Günther
Browse files
Based get_config on bob.extension
parent
288ea038
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/io/base/__init__.py
View file @
5e91479d
...
...
@@ -197,22 +197,7 @@ open = File
def
get_config
():
"""Returns a string containing the configuration information.
"""
import
pkg_resources
from
.version
import
externals
packages
=
pkg_resources
.
require
(
__name__
)
this
=
packages
[
0
]
deps
=
packages
[
1
:]
retval
=
"%s: %s [api=0x%04x] (%s)
\n
"
%
(
this
.
key
,
this
.
version
,
__api_version__
,
this
.
location
)
retval
+=
" - c/c++ dependencies:
\n
"
for
k
in
sorted
(
externals
):
retval
+=
" - %s: %s
\n
"
%
(
k
,
externals
[
k
])
retval
+=
" - python dependencies:
\n
"
for
d
in
deps
:
retval
+=
" - %s: %s (%s)
\n
"
%
(
d
.
key
,
d
.
version
,
d
.
location
)
return
retval
.
strip
()
return
bob
.
extension
.
get_config
(
__name__
,
version
.
externals
,
version
.
api
)
def
get_include_directories
():
...
...
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