Skip to content

Commit

Permalink
Based get_config on bob.extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Guenther committed Apr 30, 2015
1 parent 4f7e35b commit 9dac591
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions bob/measure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,24 +133,12 @@ def cmc(cmc_scores):

return cumulative_match_characteristic


def get_config():
"""Returns a string containing the configuration information.
"""
return bob.extension.get_config(__name__, version.externals)

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('_')]

0 comments on commit 9dac591

Please sign in to comment.