def get_pkg_info(pkg_path):
 (src, hsh) = pkg_commit_hash(pkg_path)
 import networkx
 import nibabel
 import numpy
 import scipy
 import traits
 return dict(pkg_path=pkg_path, commit_source=src, commit_hash=hsh, sys_version=sys.version, sys_executable=sys.executable, sys_platform=sys.platform, numpy_version=numpy.__version__, scipy_version=scipy.__version__, networkx_version=networkx.__version__, nibabel_version=nibabel.__version__, traits_version=traits.__version__)

def get_pkg_info ( pkg_path ) : ( src , hsh ) = pkg_commit_hash ( pkg_path ) import networkx import nibabel import numpy import scipy import traits return dict ( pkg_path = pkg_path , commit_source = src , commit_hash = hsh , sys_version = sys . version , sys_executable = sys . executable , sys_platform = sys . platform , numpy_version = numpy . __version__ , scipy_version = scipy . __version__ , networkx_version = networkx . __version__ , nibabel_version = nibabel . __version__ , traits_version = traits . __version__ )
return dict describing the context of this package parameters pkg_path : str path containing __init__ .