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.measure
Commits
28fa6c57
Commit
28fa6c57
authored
Mar 23, 2014
by
André Anjos
💬
Browse files
Add function to print comprehensive dependence list
parent
71ac5167
Changes
1
Hide whitespace changes
Inline
Side-by-side
xbob/measure/__init__.py
View file @
28fa6c57
...
...
@@ -130,5 +130,24 @@ def cmc(cmc_scores):
return
cumulative_match_characteristic
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 (%s)
\n
"
%
(
this
.
key
,
this
.
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
()
# gets sphinx autodoc done right - don't remove it
__all__
=
[
_
for
_
in
dir
()
if
not
_
.
startswith
(
'_'
)]
Write
Preview
Supports
Markdown
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